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

   ### Purpose
   
   Fixes #11128.
   
   With `write-only=true` and `write.sequence-number-init-mode=snapshot`, 
restarting a dynamic-bucket writer can replace an existing HASH index with only 
the current write's hashes. Later updates can then reach a different bucket and 
leave duplicate primary keys in query results.
   
   Restore indexes independently of the data-file metadata fast path, retain 
data metadata required by primary-key indexes, and preserve explicit overwrite 
semantics. Pass the metadata-scan flag through the Flink write coordinator as 
well.
   
   ### Tests
   
   - Core regressions: 22 tests passed, covering HASH retention, bucket 
assignment, overwrite, sequence initialization, and file-backed 
deletion-vector/primary-key index restoration.
   - `TableWriteCoordinatorTest`: 9 tests passed, including paginated index 
restoration with and without data-file metadata scanning.
   - Both Maven runs completed without `fast-build`; `git diff --check` passed.
   


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