gengliangwang commented on code in PR #35897:
URL: https://github.com/apache/spark/pull/35897#discussion_r843679638
##########
sql/core/src/test/resources/sql-tests/results/string-functions.sql.out:
##########
@@ -1136,3 +1136,12 @@ struct<>
-- !query output
org.apache.spark.sql.AnalysisException
Invalid value for the 'format' parameter of function 'to_binary':
invalidformat. The value has to be a case-insensitive string literal of 'hex',
'utf-8', or 'base64'.
+
+
+-- !query
+select to_binary('a!', 'base64')
+-- !query schema
+struct<>
+-- !query output
+java.lang.IllegalArgumentException
Review Comment:
This is the behavior of the function `Encode`, which is introduced since
Spark 1.5
--
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]