OIiveirra commented on code in PR #68161:
URL: https://github.com/apache/doris/pull/68161#discussion_r4085384845
##########
fe/fe-connector/fe-connector-paimon/src/main/java/org/apache/doris/connector/paimon/PaimonScanPlanProvider.java:
##########
@@ -708,7 +708,10 @@ private List<ConnectorScanRange> planScanInternal(
// Build predicates from filter expression
RowType rowType = table.rowType();
List<org.apache.paimon.predicate.Predicate> predicates =
Collections.emptyList();
- if (filter.isPresent()) {
+ // Paimon can cast historical timestamp statistics with the current
precision while planning
+ // splits. Keep these predicates as Doris residuals so an old file
cannot be pruned before JNI
+ // widens and repairs its timestamp values.
+ if (filter.isPresent() && !containsTimestampType(rowType)) {
PaimonPredicateConverter converter = new
PaimonPredicateConverter(rowType);
predicates = converter.convert(filter.get());
Review Comment:
Fixed in 1e88ec405d3. FE predicate conversion now runs in timestamp-repair
mode per predicate: timestamp-dependent leaves are withheld, safe non-timestamp
predicates are retained, AND siblings remain pushable, and mixed OR expressions
remain residual. JNI keeps the FE-approved safe predicate list instead of
clearing all filters. Added converter coverage for id = 7 retention and
timestamp residual behavior; FE unit tests and the Paimon timestamp regression
suite pass.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]