lxy-9602 opened a new issue, #593:
URL: https://github.com/apache/paimon-cpp/issues/593

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/paimon-cpp/issues) and found nothing similar.
   
   
   ### Motivation
   
   External index compaction needs to locate indexes in the original files and 
map their row ids to the compacted file. The existing append compaction API 
does not expose this information.
   
   The mapping must account for deletion vectors and match the actual 
compaction order.
   
   
   ### Solution
   
   Add `AppendFileCompactionPlanner::CreatePlan()` for selected files in a 
partition and bucket. It should return:
   
   - Index offsets and lengths for each original field and index type, 
supporting external and embedded indexes.
   - Source-to-output row id mappings that exclude deleted rows.
   - The snapshot id and total output row count.
   
   Planning should support a specified snapshot or the latest snapshot without 
rewriting data.
   
   Use file name order for both planning and execution. Explicit compaction 
should produce one output file, or no file when all input rows are deleted.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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