Skip to content

Table maintenance api#464

Closed
nuts-rice wants to merge 5 commits into
apache:mainfrom
nuts-rice:table_maintenance_pypaimon
Closed

Table maintenance api#464
nuts-rice wants to merge 5 commits into
apache:mainfrom
nuts-rice:table_maintenance_pypaimon

Conversation

@nuts-rice

@nuts-rice nuts-rice commented Jul 6, 2026

Copy link
Copy Markdown

Purpose

Linked issue: close #286

Brief change log

  • expire_snapshots_earlier_than- goes through snapshot_ids, checks for being earlier than timestamp, than deletes. Returns number of snapshots deleted.
  • remove_orphan_files- goes through snapshot_ids, checks for files not being referenced by manifest lists, than deletes.
    Returns number of files deleted.
  • drop_partition- takes a partition, goes through fields, commits to drop_partitions
  • trigger_compaction - Naive full impl. Scans all partitions. Merges and dedupes. Rewrites None static partitions.

These have associated python stub bindings that are exposed

Tests

cargo check succeeds
maturin builds

API and Format

Adds new table maintenance fns to API

Documentation

Documented with comments

@nuts-rice
nuts-rice force-pushed the table_maintenance_pypaimon branch from 0ad3bfc to 185dc98 Compare July 17, 2026 15:58
@nuts-rice
nuts-rice marked this pull request as ready for review July 17, 2026 16:34
@nuts-rice
nuts-rice force-pushed the table_maintenance_pypaimon branch from 9b50b12 to 1dabf72 Compare July 17, 2026 17:14

@JingsongLi JingsongLi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-1
Each implementation has serious issues; please implement them carefully and consider each API separately.

@JingsongLi JingsongLi closed this Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose table maintenance API (expire_snapshots, remove_orphan_files, drop_partition, trigger_compaction) for pypaimon_rust

2 participants