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

   <!-- PR titles must follow Conventional Commits: <type>(<optional-scope>): 
<description> -->
   
   ### Purpose
   
   <!-- Linking this pull request to the issue -->
   Linked issue: close #593 
   
   External index compaction needs index locations and row mappings for the 
selected source files.
   
   Add `AppendFileCompactionPlanner::CreatePlan()` to read per-field, 
per-index-type offsets and lengths and calculate row mappings using snapshot 
deletion vectors.
   
   Align explicit compaction with the plan: merge files in file name order, 
preserve surviving row order, and produce one output file regardless of 
`target-file-size`. Fully deleted inputs produce no output file. Planning and 
execution must use the same input files and snapshot deletion state.
   
   <!-- What is the purpose of the change -->
   
   ### Tests
   - Add planner tests covering row mappings, 32/64-bit deletion vectors, 
historical snapshots, partition/bucket filtering, invalid inputs, and row ids 
above 32 bits.
   - Cover V1/V2 external and embedded index containers, empty indexes, unknown 
index types, and malformed metadata.
   - Compare planned row ids with actual compaction output, including file name 
order differing from sequence order, small target file sizes, and fully deleted 
inputs.
   
   <!--
   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
   - Add `AppendFileCompactionPlanner` and its result types.
   - Change `AppendFileCompaction::Execute()` input file names from 
`std::vector<std::string>` to `std::set<std::string>`.
   - Move the public compaction headers under `paimon/append/`. Callers must 
update their include paths and argument types.
   - No storage format or protocol changes.
   
   <!-- Does this change affect API in include dir or storage format or 
protocol -->
   
   ### Documentation
   Update the API reference and compaction guide with planning behavior, output 
ordering, and a deletion-aware row mapping example.
   
   <!-- 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