Peter Rozsa has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/23706


Change subject: IMPALA-14569: Fix IllegalStateException in partition pruning on 
type mismatch
......................................................................

IMPALA-14569: Fix IllegalStateException in partition pruning on type mismatch

This fixes an IllegalStateException in HdfsPartitionPruner when
evaluating 'IN' predicates with mismatched types.

Previously, 'canEvalUsingPartitionMd' did not check if the slot type
matched the literal type. This caused the frontend to attempt invalid
comparisons via 'LiteralExpr.compareTo', leading to
IllegalStateException or incorrect pruning.

The fix ensures 'canEvalUsingPartitionMd' returns false on type
mismatches, deferring evaluation to the backend where proper casting
occurs.

Testing:
- Added regression test in hdfs-partition-pruning.test.

Change-Id: Idc226a628c8df559329a060cb963b81e27e21eda
---
M fe/src/main/java/org/apache/impala/planner/HdfsPartitionPruner.java
A 
testdata/workloads/functional-query/queries/QueryTest/hdfs-partition-pruning.test
M tests/query_test/test_queries.py
3 files changed, 21 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/06/23706/2
--
To view, visit http://gerrit.cloudera.org:8080/23706
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idc226a628c8df559329a060cb963b81e27e21eda
Gerrit-Change-Number: 23706
Gerrit-PatchSet: 2
Gerrit-Owner: Peter Rozsa <[email protected]>

Reply via email to