Hello Impala Public Jenkins,

I'd like you to reexamine a change. Please visit

    https://gerrit.cloudera.org/25366

to look at the new patch set (#4).

Change subject: IMPALA-15705: Fix NPE planning min/max runtime filters on 
Iceberg scans
......................................................................

IMPALA-15705: Fix NPE planning min/max runtime filters on Iceberg scans

Planning fails with a NullPointerException in initOverlapPredicate()
when a min/max runtime filter targets an Iceberg scan whose data files
are all non-Parquet while the table's write.format.default is Parquet.
The planner set allParquet_ from the synthetic partition format but
only built statsTuple_ when the scanned fileFormats_ contained Parquet
or ORC with statistics, so Preconditions.checkNotNull(statsTuple_)
failed.

IcebergScanNode now derives allParquet_ and allColumnarFormat_ from
fileFormats_ via HdfsScanNode.setAllFormatFlags(), so the flags describe
the files actually scanned.

Testing:
- iceberg-mixed-file-format.test adds joins on
  iceberg_mixed_file_format_part that scan only the Avro partition
  (int_col=1) or only ORC with ORC_READ_STATISTICS=false (int_col=2);
  both NPE on master before this change.
- PlannerTest#testIcebergMerge passes with the change and fails without
  it, due to the expected RF001 plan updates.

Change-Id: I6503e60d69ccd27df3f9b4fad1a9b88818fc70b9
Assisted-by: Claude Haiku 5.5 (Cursor)
---
M fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java
M fe/src/main/java/org/apache/impala/planner/IcebergScanNode.java
M testdata/workloads/functional-planner/queries/PlannerTest/iceberg-merge.test
M 
testdata/workloads/functional-query/queries/QueryTest/iceberg-mixed-file-format.test
4 files changed, 70 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/25366/4
--
To view, visit https://gerrit.cloudera.org/25366
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6503e60d69ccd27df3f9b4fad1a9b88818fc70b9
Gerrit-Change-Number: 25366
Gerrit-PatchSet: 4
Gerrit-Owner: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>

Reply via email to