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

   ### Purpose                                                                  
                                                                                
                                                                                
         
                                                                                
                                                                                
                                                                                
       
   Support dynamic partition overwrite in `FileStoreCommit.overwrite()`, 
aligned with Java `FileStoreCommitImpl.overwritePartition()`:
   
   - When `dynamic-partition-overwrite=true` (default), only partitions present 
in the committed data are replaced — other partitions remain untouched.
   - When no data is committed, the overwrite is skipped entirely. When 
`dynamic-partition-overwrite=false`, existing static overwrite behavior is 
unchanged.
   
   Key Changes:
   - Add `DYNAMIC_PARTITION_OVERWRITE` config option and accessor in 
`CoreOptions`.
   - Restructure `overwrite()` with `skip_overwrite` / `partition_filter` 
control flow mirroring Java's `skipOverwrite` / `partitionFilter`.
   - Add `_create_dynamic_partition_filter()` mirroring 
`PartitionPredicate.fromMultiple`.
   - Add `_create_static_partition_filter()` mirroring 
`createPartitionPredicate` + `fromPredicate`.
                                                                                
                                                                                
                                                          
   ### Tests
   
   Add `test_dynamic_partition_overwrite` to `ReaderBasicTest`, 
`RESTTableReadWriteTest`, and `RESTAOReadWritePy36Test`:
   - Single-partition dynamic overwrite: only touched partition replaced, 
others untouched.
   - Multi-partition dynamic overwrite: multiple partitions replaced, others 
untouched.
   - Existing `test_overwrite` (static mode with 
`dynamic-partition-overwrite=false`) passes without regression.


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