You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "XiaoHongbo-Hope (via GitHub)" <gi...@apache.org> on 2026/09/14 15:59:40 UTC

[PR] [python] Skip pruned manifest file metadata decoding [paimon]

XiaoHongbo-Hope opened a new pull request, #9826:
URL: https://github.com/apache/paimon/pull/9826

   ## Purpose
   
   Align PyPaimon manifest pruning with the block-based Java reader introduced by #9160.
   
   `fastavro.reader()` currently materializes the complete nested `_FILE` record before PyPaimon applies partition and bucket filters. On large manifests, most of those objects can be discarded immediately.
   
   ## Changes
   
   - Read standard-order manifest entries by Avro block.
   - Decode the partition and bucket prefix first and skip `_FILE` for rejected entries.
   - Preserve the generic `fastavro.reader()` path when no early filter is present.
   - Fall back to the generic reader for historical manifests with reordered top-level fields.
   - Support both the legacy and current fastavro named-schema layouts.
   
   ## Benchmark
   
   Read-only planning benchmark on a fixed snapshot with 50 candidate manifests and about 13.8 million entries:
   
   | | Before | After |
   |---|---:|---:|
   | `new_scan().plan()` | 369.6 s | 245.6 s |
   
   This is a 1.50x speedup. Both runs produced the same 51 splits, 151 files, and 71,509 planned rows.
   
   ## Tests
   
   - `33 passed, 8 subtests passed` in `pypaimon/tests/manifest`
   - `25 passed, 2 subtests passed` in `partition_predicate_test.py`
   - Python 3.6 / fastavro 1.4.7 read-and-skip compatibility check
   - Flake8 and `git diff --check`
   


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [python] Add block-based manifest Avro reader [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #9826:
URL: https://github.com/apache/paimon/pull/9826#issuecomment-5676056764

   +1


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [python] Add block-based manifest Avro reader [paimon]

Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #9826:
URL: https://github.com/apache/paimon/pull/9826


-- 
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: issues-unsubscribe@paimon.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org