FishManHome commented on PR #12659:
URL: https://github.com/apache/hudi/pull/12659#issuecomment-2808578728

   > > > data must be written into the Hudi table before querying will not 
throw an error indicating that the added fields do not exist.
   > > 
   > > 
   > > make sure schema evolution is enabled, `hoodie.schema.on.read.enable = 
true`, otherwise alter cmd do not commit table change in hudi.
   > 
   > When creating the Hudi table, add the attribute 
hoodie.schema.on.read.enable = true. The modified code can resolve the previous 
issue. However, another problem has emerged: the new field values queried by 
hive sql are out of sync with the partition field values, resulting in the new 
field values being displayed as the partition field values
   > 
   > <img alt="image" width="321" 
src="https://private-user-images.githubusercontent.com/17332932/405518999-35df3a1f-6e96-40c4-85b8-6bf8ee6ff8b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDQ3ODY2MTAsIm5iZiI6MTc0NDc4NjMxMCwicGF0aCI6Ii8xNzMzMjkzMi80MDU1MTg5OTktMzVkZjNhMWYtNmU5Ni00MGM0LTg1YjgtNmJmOGVlNmZmOGIwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA0MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNDE2VDA2NTE1MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUwZTlhMTY1ZmIwNWY5NDQ1NTA1OWZkY2NiNjIyZGRiNmUzYjE0YWYxMTI1OGE5MGU4ZTI4ODg3NjJmOTE5N2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.oKjtntmzGwS1TewPZ0e1mmFEd96TyrvnyymKc1gzHCw";>
   
   @liucongjy Expert, I'd like to ask: In the Hudi 0.15.0 version, besides this 
pull request, what other code changes have you made? I'm currently encountering 
the same issue as you did.  


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

Reply via email to