mihailom-db commented on code in PR #45422:
URL: https://github.com/apache/spark/pull/45422#discussion_r1526146584
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala:
##########
@@ -994,8 +994,10 @@ object TypeCoercion extends TypeCoercionBase {
case (StringType, datetime: DatetimeType) => datetime
case (StringType, AnyTimestampType) =>
AnyTimestampType.defaultConcreteType
case (StringType, BinaryType) => BinaryType
+ case (st: StringType, StringType) => st
// Cast any atomic type to string.
case (any: AtomicType, StringType) if any != StringType => StringType
Review Comment:
Not that I know of as well. For now all functions get as inputType only
StringType. This is the first PR that introduces something specific to some
collations.
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercion.scala:
##########
@@ -994,8 +994,10 @@ object TypeCoercion extends TypeCoercionBase {
case (StringType, datetime: DatetimeType) => datetime
case (StringType, AnyTimestampType) =>
AnyTimestampType.defaultConcreteType
case (StringType, BinaryType) => BinaryType
+ case (st: StringType, StringType) => st
// Cast any atomic type to string.
case (any: AtomicType, StringType) if any != StringType => StringType
Review Comment:
+1 Not that I know of as well. For now all functions get as inputType only
StringType. This is the first PR that introduces something specific to some
collations.
--
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]