cloud-fan commented on code in PR #45805: URL: https://github.com/apache/spark/pull/45805#discussion_r1555180608
########## sql/core/src/test/scala/org/apache/spark/sql/VariantSuite.scala: ########## @@ -298,4 +300,26 @@ class VariantSuite extends QueryTest with SharedSparkSession { } assert(ex.getErrorClass == "DATATYPE_MISMATCH.INVALID_ORDERING_TYPE") } + + test("variant_explode") { + def check(input: String, expected: Seq[Row]): Unit = { + val df = Seq(input).toDF("json") + checkAnswer(df.selectExpr("variant_explode(parse_json(json))") Review Comment: ditto, please use the SQL standard TVF syntax to invoke it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org