dongjoon-hyun commented on code in PR #53428:
URL: https://github.com/apache/spark/pull/53428#discussion_r2607506416
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/TypeCoercionBase.scala:
##########
@@ -262,7 +262,11 @@ abstract class TypeCoercionBase extends TypeCoercionHelper
{
case (attr, dt) =>
val widerType = findWiderTypeForTwo(attr.dataType, dt)
if (widerType.isDefined && widerType.get == dt) {
- Alias(Cast(attr, dt), attr.name)()
+ if (attr.dataType != dt) {
+ Alias(Cast(attr, dt, Some(conf.sessionLocalTimeZone)),
attr.name)()
Review Comment:
This is non-trivial because you are adding `Some(conf.sessionLocalTimeZone)`.
--
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]