Arnab Karmakar has uploaded this change for review. ( https://gerrit.cloudera.org/25366
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(), non-Iceberg scans unchanged. 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. Change-Id: I6503e60d69ccd27df3f9b4fad1a9b88818fc70b9 Assisted-by: Composer 2.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-query/queries/QueryTest/iceberg-mixed-file-format.test 3 files changed, 42 insertions(+), 3 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/66/25366/1 -- 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: newchange Gerrit-Change-Id: I6503e60d69ccd27df3f9b4fad1a9b88818fc70b9 Gerrit-Change-Number: 25366 Gerrit-PatchSet: 1 Gerrit-Owner: Arnab Karmakar <[email protected]>
