szehon-ho opened a new pull request, #50685:
URL: https://github.com/apache/spark/pull/50685

   
   
   ### What changes were proposed in this pull request?
   Add another fallback for broken (non-resolved) exists_default values for 
SPARK-51119 original fix.
   
   ### Why are the changes needed?
   https://github.com/apache/spark/pull/49962 added a fallback in case there 
were already broken (ie, non-resolved) persisted default values in catalogs.  A 
broken one is something like 'current_database, current_user, 
current_timestamp' , these are non-deterministic and will bring wrong results 
in EXISTS_DEFAULT, where user expects the value resolved when they set the 
default.
   
   However, this fallback missed one case when the current_xxx is in a cast.  
This fixes it.
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Add to existing unit test in StructTyepSuite
   
   ### Was this patch authored or co-authored using generative AI tooling?
   No


-- 
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]

Reply via email to