Skip to content

feat: support cleanup explain for python and java#7248

Draft
yanghua wants to merge 3 commits into
lance-format:mainfrom
yanghua:feat-cleanup-explain-py-java
Draft

feat: support cleanup explain for python and java#7248
yanghua wants to merge 3 commits into
lance-format:mainfrom
yanghua:feat-cleanup-explain-py-java

Conversation

@yanghua

@yanghua yanghua commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add Java and PyLance APIs for cleanup explain.

  • Add PyLance Dataset.explain_cleanup_old_versions(...) with cleanup explanation
    result types
  • Export PyLance cleanup explanation types from the top-level lance package
  • Add Java dataset.cleanup(policy).explain() / .execute() operation API
  • Keep Java cleanupWithPolicy(policy) as a compatibility wrapper for execute
  • Add JNI conversions and tests for cleanup explanations

Testing

  • cargo fmt --all
  • cargo fmt --manifest-path ./java/lance-jni/Cargo.toml --all
  • cargo check --manifest-path python/Cargo.toml
  • cargo check --manifest-path ./java/lance-jni/Cargo.toml
  • ./mvnw compile
  • ./mvnw -Dtest=CleanupTest test
  • uv run --frozen --python 3.12 pytest python/tests/ test_dataset.py::test_explain_cleanup_old_versions

@github-actions github-actions Bot added A-python Python bindings A-java Java bindings + JNI enhancement New feature or request labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-java Java bindings + JNI A-python Python bindings enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant