You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "QuakeWang (via GitHub)" <gi...@apache.org> on 2026/06/01 07:54:51 UTC

[PR] [python][daft] Preserve pushed filters across source serialization [paimon]

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

    ### Purpose
   
   `PaimonDataSource.__setstate__()` restores pushed filter state before reopening the table, but `_init_table()` then reset `_pushed_filters`, `_paimon_predicate`, and `_remaining_filters` to `None`.
   
   This made serialized Daft sources lose filters already accepted by `push_filters()`. In fallback reads, `get_tasks(Pushdowns(filters=None, limit=1))` could then plan an unfiltered limited read and return the wrong row.
   
   This PR moves pushdown state initialization to `__init__()`, keeps `_init_table()` limited to table-derived metadata, and includes `_pushed_filters` in the serialized state for consistent explain/debug output.
   
   ### Tests
   
   - `pytest paimon-python/pypaimon/tests/daft/daft_data_test.py`


-- 
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][daft] Preserve pushed filters across source serialization [paimon]

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

   +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][daft] Preserve pushed filters across source serialization [paimon]

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


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