Impala Public Jenkins has submitted this change and it was merged. ( 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(), 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) Reviewed-on: https://gerrit.cloudera.org/25366 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- 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, 74 insertions(+), 21 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- 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: merged Gerrit-Change-Id: I6503e60d69ccd27df3f9b4fad1a9b88818fc70b9 Gerrit-Change-Number: 25366 Gerrit-PatchSet: 7 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]>
