Skip to content
Prev Previous commit
Next Next commit
fix
  • Loading branch information
dtenedor committed Jun 20, 2024
commit 16161e41a0fa67673b2edab49b54001490ef4936
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ class AvroFunctionsSuite extends QueryTest with SharedSparkSession {
|select to_avro(s, 42) as result from t
|""".stripMargin)),
errorClass = "DATATYPE_MISMATCH.TYPE_CHECK_FAILURE_WITH_HINT",
parameters = Map("sqlExpr" -> "\"toavrosqlfunction(s, 42)\"",
parameters = Map("sqlExpr" -> "\"toavro(s, 42)\"",
"msg" -> ("The second argument of the TO_AVRO SQL function must be a constant string " +
"containing the JSON representation of the schema to use for converting the value to " +
"AVRO format"),
Expand All @@ -339,7 +339,7 @@ class AvroFunctionsSuite extends QueryTest with SharedSparkSession {
|select from_avro(s, 42, '') as result from t
|""".stripMargin)),
errorClass = "DATATYPE_MISMATCH.TYPE_CHECK_FAILURE_WITH_HINT",
parameters = Map("sqlExpr" -> "\"fromavrosqlfunction(s, 42, )\"",
parameters = Map("sqlExpr" -> "\"fromavro(s, 42, )\"",
"msg" -> ("The second argument of the FROM_AVRO SQL function must be a constant string " +
"containing the JSON representation of the schema to use for converting the value " +
"from AVRO format"),
Expand All @@ -356,7 +356,7 @@ class AvroFunctionsSuite extends QueryTest with SharedSparkSession {
errorClass = "DATATYPE_MISMATCH.TYPE_CHECK_FAILURE_WITH_HINT",
parameters = Map(
"sqlExpr" ->
s"\"fromavrosqlfunction(s, $jsonFormatSchema, 42)\"".stripMargin,
s"\"fromavro(s, $jsonFormatSchema, 42)\"".stripMargin,
"msg" -> ("The third argument of the FROM_AVRO SQL function must be a constant map of " +
"strings to strings containing the options to use for converting the value " +
"from AVRO format"),
Expand Down