fengruotj opened a new pull request, #11297:
URL: https://github.com/apache/paimon/pull/11297

   ### Purpose
   
   Closes https://github.com/apache/paimon/issues/11073
   
   adding `--snapshot-id` to `table read` and `table explain` in the PyPaimon 
CLI.
   
   - `paimon table read mydb.orders --snapshot-id 42` reads rows visible at 
snapshot 42 on the table's branch. Column names in `--select` and `--where` are 
resolved against that snapshot's schema.
   - `paimon table explain mydb.orders --snapshot-id 42` shows the scan plan 
for the same snapshot without reading data files.
   
   An explicit snapshot ID takes precedence over configured snapshot or tag 
selectors. The CLI documentation includes examples for both commands.
   
   ### Tests
   
   - `paimon-python/pypaimon/tests/cli_table_test.py` passed all 106 tests, 
including coverage for schema evolution, branch selection, and invalid or 
missing snapshot IDs.
   - `flake8` passed for both changed Python files.


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

Reply via email to