SML0127 opened a new issue, #286:
URL: https://github.com/apache/paimon-rust/issues/286

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/paimon-rust/issues) and found nothing 
similar.
   
   
   ### Motivation
   
   Building on the catalog metadata and observability APIs 
(https://github.com/apache/paimon-rust/issues/284, 
https://github.com/apache/paimon-rust/issues/285), pypaimon_rust still has no 
support for table maintenance operations: snapshot expiration, orphan file 
cleanup, partition management, and compaction. In particular, 
`trigger_compaction` is essential for aggregation tables to produce correct 
merged results.
   
   ### Solution
   
   Once the underlying rust maintenance functions are implemented, expose the 
following methods on PyTable:
   
   ```python
   # PyTable (additions)
   table.expire_snapshots(older_than_ms: int) -> int
   table.remove_orphan_files(older_than_ms: int) -> list[str]
   table.drop_partition(partition_spec: dict[str, str]) -> None
   table.trigger_compaction(full: bool = False) -> None
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Willingness to contribute
   
   - [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