cloud-fan commented on code in PR #52906:
URL: https://github.com/apache/spark/pull/52906#discussion_r2500389894
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala:
##########
@@ -1341,6 +1354,7 @@ case class Cast(
case FloatType => castToFloatCode(from, ctx)
case LongType => castToLongCode(from, ctx)
case DoubleType => castToDoubleCode(from, ctx)
+ case _: GeographyType => castToGeographyCode(from)
Review Comment:
we can follow `case _ if to == from => (c, evPrim, evNull) => code"$evPrim =
$c;"` to do noop cast.
--
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]