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

   
   
   ### What changes were proposed in this pull request?
    The original change in https://github.com/apache/spark/pull/49840 was too 
optimistic and assumes that all column EXISTS_DEFAULT are already resolved and 
column folded.  However, if there is bad EXISTS_DEFAULT metadata (an unresolved 
expression is persisted) it will break.  Add fallback to use the original logic 
in that case.
   
   ### Why are the changes needed?
   There are some cases where bad EXISTS_DEFAULT metadata is persisted by 
external catalogs, due to some bugs such as 
https://github.com/apache/spark/pull/49942 or other problems.
     
   
   ### Does this PR introduce _any_ user-facing change?
   No, it should handle bad metadata better.
   
   
   ### How was this patch tested?
   Add unit test
   
   
   ### 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