cravani opened a new pull request, #52730:
URL: https://github.com/apache/spark/pull/52730

   ### What changes were proposed in this pull request?
   Spark attempts to save views in a Hive-compatible format and only sets the 
schema to empty if the save operation fails.
   
   However, due to certain Hive compatibility issues, the save operation may 
succeed while subsequent read operations fail. This issue arises after the 
change introduced in 
[SPARK-46934](https://issues.apache.org/jira/browse/SPARK-46934), which removed 
the verifyColumnDataType check during the ALTER TABLE operation.
   
   
   ### Why are the changes needed?
   to not save malformed views that no one can read.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes, the malformed view will be saved in non hive compatible way so that 
Spark can read it.
   
   ### How was this patch tested?
   Updated Test case
   
   
   ### 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