HyukjinKwon commented on code in PR #46649: URL: https://github.com/apache/spark/pull/46649#discussion_r1605735539
########## sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala: ########## @@ -969,6 +969,8 @@ object TypeCoercion extends TypeCoercionBase { // Note that ret is nullable to avoid typing a lot of Some(...) in this local scope. // We wrap immediately an Option after this. @Nullable val ret: DataType = (inType, expectedType) match { + case (_: StringType, _: StringType) => expectedType.defaultConcreteType Review Comment: This seems to be already working in ANSI. -- 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: reviews-unsubscr...@spark.apache.org 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