Zoltan Borok-Nagy has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/25213 )

Change subject: IMPALA-15634: Fix LIKE and folded string push down to Iceberg
......................................................................


Patch Set 1:

(3 comments)

Thanks for working on this!

http://gerrit.cloudera.org:8080/#/c/25213/1//COMMIT_MSG
Commit Message:

http://gerrit.cloudera.org:8080/#/c/25213/1//COMMIT_MSG@7
PS1, Line 7: IMPALA-15634: Fix LIKE and folded string push down to Iceberg
This also fixes IMPALA-15633, please name both Jiras in the title


http://gerrit.cloudera.org:8080/#/c/25213/1/fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java
File fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java:

http://gerrit.cloudera.org:8080/#/c/25213/1/fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java@229
PS1, Line 229:       if (!op.equals(Operation.AND) && 
predicate.contains(LikePredicate.class)) {
             :         return new ConverterResult(ConversionStatus.FAILED, 
String.format(
             :             "LIKE under NOT or OR cannot be pushed down to 
Iceberg: %s",
             :             predicate.toSql()));
This also drops pruning where NULL can't pass, e.g. p LIKE 'c%' OR p LIKE 'd%' 
(Test 4: 2 -> 3 partitions). It also makes DROP PARTITION / SHOW FILES fail 
when LIKEs are combined with OR. OK as an interim fix, might worth a follow-up 
ticket.


http://gerrit.cloudera.org:8080/#/c/25213/1/fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java@246
PS1, Line 246:         if (leftResult.isPartiallyConverted()) {
             :           return new ConverterResult(ConversionStatus.FAILED, 
String.format(
             :               "NOT of a partially converted predicate cannot be 
pushed down to " +
             :               "Iceberg: %s", predicate.toSql()));
             :         }
> Note for reviewers: This block is unreachable but I left it in because it p
Yes, we will potentially have relaxed predicates for TIMESTAMPS, see 
IMPALA-15709.

So it's better to keep as a safeguard.



--
To view, visit http://gerrit.cloudera.org:8080/25213
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I69d178f63914c88650d546f46cec2ac34077dc2a
Gerrit-Change-Number: 25213
Gerrit-PatchSet: 1
Gerrit-Owner: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Fri, 30 Oct 2026 14:51:23 +0000
Gerrit-HasComments: Yes

Reply via email to