xuanyuanking opened a new pull request #28288:
URL: https://github.com/apache/spark/pull/28288


   ### What changes were proposed in this pull request?
   Override the canonicalized fields with respect to the result of 
`needsTimeZone`.
   
   
   ### Why are the changes needed?
   The current approach breaks sematic equal of two cast expressions that don't 
relate with datetime type. If we don't need to use `timeZone` information 
casting `from` type to `to` type, then the timeZoneId should not influence the 
canonicalize result. 
   
   
   ### Does this PR introduce any user-facing change?
   No.
   
   
   ### How was this patch tested?
   New UT added.
   


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to