Skip to content

Table maintenance api#464

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

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

Conversation

@nuts-rice

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[WIP]

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

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

1 participant