fengruotj opened a new pull request, #11154: URL: https://github.com/apache/paimon/pull/11154
### Purpose Implements the file commands proposed in [#11073 (https://github.com/apache/paimon/issues/11073)](https://github.com/apache/paimon/issues/11073). Adds read-only file inspection to the PyPaimon CLI: - paimon table list-files <database.table> lists live data files referenced by the latest or a specified snapshot, including the snapshot ID and file metadata. It supports --snapshot-id, --bucket, and --limit, with table output by default or JSON output. - paimon table file <database.table> --file <file-path> reads a Parquet file at a path or filesystem URI and displays its schema and footer metadata, including row groups and column statistics. It supports JSON output by default or table output, with schema and metadata displayed as indented, multiline JSON. These commands inspect metadata without scanning data records or modifying the table. The file command does not query snapshots or manifests. CLI documentation and output examples are included. Also renames table rollback --snapshot to --snapshot-id for consistency with the other table commands. ### Tests - paimon-python/pypaimon/tests/cli_table_test.py: 90 passed, including file inspection regression tests. - flake8 for the changed Python files: passed. -- 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]
