AngersZhuuuu commented on a change in pull request #30421: URL: https://github.com/apache/spark/pull/30421#discussion_r532187359
########## File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala ########## @@ -503,13 +503,32 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with SQLConfHelper with Logg } } + private def convertTypedLiteralToString(literal: Literal): String = literal match { + case Literal(data: Int, _: DateType) => + UTF8String.fromString( Review comment: > Could you clarify why do you need the conversion: String -> UTF8String -> String Forgot where I see similar logical, emmm, so this place don't need this convert to keep standard charset UTF8 ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org