zhoulii opened a new pull request, #11393:
URL: https://github.com/apache/paimon/pull/11393

   ### Purpose
   
   In a Data Evolution table, append rows with two VECTOR columns, `embedding` 
and `embedding_v2`, stored in the same dedicated vector file. Update only 
`embedding` by `_ROW_ID` and commit. Reading either vector column individually 
or both together raises `ValueError: All files in a vector bunch should have 
the same write columns.`
   
   PyPaimon groups the original file with `write_cols=["embedding", 
"embedding_v2"]` and the update file with `write_cols=["embedding"]` by their 
first written column. It then rejects the group because the column lists 
differ. This change selects the latest file for each projected field ID and 
row-ID range, so `embedding` reads from the update file and `embedding_v2` 
reads from the original file.
   
   ### Tests
   
   Added a Vortex regression that writes two rows with both VECTOR columns 
populated, updates `embedding` for one row by `_ROW_ID`, and verifies the 
updated and unchanged values when reading each column separately and both 
together.
   


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