stuxuhai opened a new pull request, #14831:
URL: https://github.com/apache/iceberg/pull/14831

   The current implementation of `HiveViewOperations`'s `doCommit` method 
correctly updates the view properties and the Iceberg metadata location in the 
Hive Metastore (HMS) when a view is altered. However, it **fails to update the 
actual SQL query string** stored in the HMS.
   
   This bug causes severe inconsistency:
   1.  A user alters an Iceberg View (e.g., changing the underlying query 
logic).
   2.  The Iceberg metadata is updated correctly.
   3.  The HMS continues to store the **old** query string, which can lead to 
users or tools relying on the HMS metadata executing the outdated definition.
   
   This fix guarantees that the view definition in the Hive Metastore is always 
synchronized with the canonical Iceberg view definition, enhancing 
compatibility and reliability when using external systems that rely on HMS for 
query metadata.


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