ulysses-you commented on a change in pull request #30295:
URL: https://github.com/apache/spark/pull/30295#discussion_r520243629
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/literals.scala
##########
@@ -110,6 +111,7 @@ object Literal {
case _ if clz == classOf[Timestamp] => TimestampType
case _ if clz == classOf[JavaBigDecimal] => DecimalType.SYSTEM_DEFAULT
case _ if clz == classOf[Array[Byte]] => BinaryType
+ case _ if clz == classOf[Array[Char]] => StringType
Review comment:
It seems we can never go into here with `java.lang.Character`. This
method is used which data type is `Array[_]`, but we always intercept the
`Array[Char]` first.
----------------------------------------------------------------
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]