Skip to content

[python] Add list-manifests & manifest by file support for Python CLI. - #11148

Open
fengruotj wants to merge 1 commit into
apache:masterfrom
fengruotj:feat/pypaimon-cli-manifest-commands
Open

fengruotj wants to merge 1 commit into
apache:masterfrom
fengruotj:feat/pypaimon-cli-manifest-commands

Conversation

@fengruotj

Copy link
Copy Markdown
Contributor

Purpose

Implements the manifest commands proposed in #11073.

Adds read-only manifest inspection to the PyPaimon CLI:

  • paimon table list-manifests <database.table> lists manifests referenced by the latest or a specified snapshot. It supports --snapshot-id, --type (all, base, delta, or changelog), and --limit, with table output by default or JSON output.
  • paimon table manifest <database.table> --file <manifest-file> reads a manifest directly and displays its original ADD/DELETE entries, including partition, bucket, file metadata, and statistics. It supports JSON output by default or table output, with the complete entries array displayed as a single field.

These commands read snapshot, manifest, and schema metadata without scanning data files or modifying the table. CLI documentation and output examples are included.

Tests

  • paimon-python/pypaimon/tests/cli_table_test.py: 84 passed, including manifest inspection regression tests.
  • flake8 for the changed Python files: passed.

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.

1 participant