QuakeWang opened a new pull request, #8419: URL: https://github.com/apache/paimon/pull/8419
### Purpose Python Mosaic reads currently apply pushed predicates only after `read_row_group`, by filtering the in-memory Arrow batch. This keeps results correct but misses Mosaic row-group statistics pruning. This PR passes the structured Paimon predicate to the Mosaic format reader and evaluates it against Mosaic row-group statistics before reading a row group. The final Arrow predicate filter is still applied after reading, so stats pruning remains an optimization. If stats are missing, conversion fails, or the file schema is older than the table schema, the reader fails open and keeps the previous behavior. ### Tests - `pytest paimon-python/pypaimon/tests/test_format_mosaic_reader_writer.py -q` -- 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]
