yaooqinn commented on a change in pull request #30295:
URL: https://github.com/apache/spark/pull/30295#discussion_r520435204
##########
File path:
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/LiteralExpressionSuite.scala
##########
@@ -239,6 +239,11 @@ class LiteralExpressionSuite extends SparkFunSuite with
ExpressionEvalHelper {
checkEvaluation(Literal.create('\n'), "\n")
}
+ test("SPARK-33390: Make Literal support char array") {
+ checkEvaluation(Literal(Array('h', 'e', 'l', 'l', 'o')), "hello")
+ checkEvaluation(Literal(Array("hello".toCharArray)), Array("hello"))
Review comment:
better to add some ideographic language cases
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]