lxy-9602 opened a new pull request, #572:
URL: https://github.com/apache/paimon-cpp/pull/572

   <!-- PR titles must follow Conventional Commits: <type>(<optional-scope>): 
<description> -->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   Linked issue: close #571 
   
   The existing Compact API selects input files through built-in strategies. 
This change allows callers to compact an explicit file set using their own 
selection policy.
   
   - Add `CompactRequest` and asynchronous `FileStoreWrite::CustomizeCompact`.
   - Support non-contiguous input files for fixed-bucket append tables with or 
without deletion vectors.
   - Reuse the existing compact manager and collect results and background 
errors through `PrepareCommit`.
   - Align bucket-append-ordered defaults and writer restoration behavior with 
Java.
   
   Custom compaction requires `bucket-append-ordered=false`, 
`write-only=false`, and a dedicated writer with the full schema. Real-time mode 
and data evolution are unsupported. Callers must serialize deletion-vector 
updates and compaction for the same partition-bucket until commit or discard.
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   Unit tests cover request validation, writer restoration, asynchronous task 
handling, and repeated file selection.
   
   Integration tests cover non-contiguous inputs with and without deletion 
vectors, a fully deleted input file, commit-message serialization, and 
post-commit reads.
   
   <!--
   Describe tests added or updated and what they cover; explain if no test 
changes are needed.
   Omit execution commands, results, and reasons tests were not run locally.
   -->
   
   ### API and Format
   Adds the public `CompactRequest` type and `FileStoreWrite::CustomizeCompact` 
API.
   
   No storage format or commit-message protocol changes.
   
   <!-- Does this change affect API in include dir or storage format or 
protocol -->
   
   ### Documentation
   Documents custom compaction and bucket-append-ordered behavior in the user 
guide.
   
   <!-- Does this change introduce a new feature -->
   
   ### Generative AI tooling
   Generated-by: OpenAI Codex (GPT-6)
   <!--
   If generative AI tooling has been used in the process of authoring this 
patch, please include the
   phrase: 'Generated-by: ' followed by the name of the tool and its version.
   If no, write 'No'.
   Please refer to the [ASF Generative Tooling 
Guidance](https://www.apache.org/legal/generative-tooling.html) for details.
   -->
   


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