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/02/10 10:09:10 UTC
[PR] [python] support filter by _ROW_ID for data evolution [paimon]
XiaoHongbo-Hope opened a new pull request, #7252:
URL: https://github.com/apache/paimon/pull/7252
<!-- Please specify the module before the PR name: [core] ... or [flink] ... -->
### Purpose
<!-- Linking this pull request to the issue -->
Linked issue: close #xxx
<!-- What is the purpose of the change -->
### Tests
<!-- List UT and IT cases to verify this change -->
### API and Format
<!-- Does this change affect API or storage format -->
### Documentation
<!-- Does this change introduce a new feature -->
--
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] Support filter by _ROW_ID for data evolution [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #7252:
URL: https://github.com/apache/paimon/pull/7252
--
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] Support filter by _ROW_ID for data evolution [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #7252:
URL: https://github.com/apache/paimon/pull/7252#issuecomment-3881988229
+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] Support filter by _ROW_ID for data evolution [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on code in PR #7252:
URL: https://github.com/apache/paimon/pull/7252#discussion_r2788574024
##########
paimon-python/pypaimon/read/scanner/file_scanner.py:
##########
@@ -41,6 +40,49 @@
from pypaimon.manifest.simple_stats_evolutions import SimpleStatsEvolutions
+def _row_ranges_from_predicate(predicate: Optional[Predicate]) -> Optional[List]:
+ from pypaimon.globalindex.range import Range
+ from pypaimon.table.special_fields import SpecialFields
+
+ if predicate is None:
+ return None
+
+ def visit(p: Predicate):
+ if p.method == 'and':
+ result = None
+ for child in p.literals:
+ sub = visit(child)
+ if sub is None:
+ continue
+ result = Range.and_(result, sub) if result is not None else sub
+ if not result:
+ return result
+ return result
+ if p.method == 'or':
Review Comment:
And between, see https://github.com/apache/paimon/pull/7255
--
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