cloud-fan commented on a change in pull request #35302:
URL: https://github.com/apache/spark/pull/35302#discussion_r792336839
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/errors/QueryExecutionErrorsSuite.scala
##########
@@ -112,4 +113,17 @@ class QueryExecutionErrorsSuite extends QueryTest with
SharedSparkSession {
checkUnsupportedMode(df2.selectExpr(s"aes_decrypt(value16, '$key16',
'GCM', 'PKCS')"))
checkUnsupportedMode(df2.selectExpr(s"aes_decrypt(value32, '$key32',
'ECB', 'None')"))
}
+
+ test("UNSUPPORTED_FEATURE: unsupported types (map and struct) in
Literal.apply") {
+ def checkUnsupportedTypeInLiteral(v: Any): Unit = {
+ val e = intercept[SparkRuntimeException] {
+ Literal(v)
Review comment:
This is not a user-facing API. Can we use `functions.lit`?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]