Zoltan Borok-Nagy has uploaded this change for review. ( https://gerrit.cloudera.org/25569
Change subject: IMPALA-15828: Support server-side scan planning of Iceberg REST catalogs ...................................................................... IMPALA-15828: Support server-side scan planning of Iceberg REST catalogs Iceberg REST catalogs can plan the scans on the server, e.g. with scan-planning-mode=server. Iceberg reports no scan metrics for these scans, so queries that pushed down predicates or used time travel failed with an IllegalStateException. The server may also leave out the residuals of the scan tasks. Iceberg's residual() then returns null, which Impala treated like alwaysTrue, i.e. it dropped the pushed down conjuncts, or throws a NullPointerException for partitioned tables. The scan planner no longer requires scan metrics, and the profile says that the REST catalog planned the scan. If a residual is missing, Impala computes it from the partition of the file, like Iceberg does for the scans that it plans. SHOW FILES, DROP PARTITION and OPTIMIZE use this for their partition filters too. Testing: - Added a unit test for missing residuals. - Added a custom cluster test with server-side scan planning. The REST test server no longer reads back the scan planning responses, because that needs the partition specs of the table. Change-Id: I371a632acad547543e943918051edb11069e2bd7 Assisted-by: Claude Opus 5.5 (Claude Code) --- M fe/src/main/java/org/apache/impala/analysis/ShowFilesStmt.java M fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java M fe/src/main/java/org/apache/impala/service/Frontend.java M fe/src/main/java/org/apache/impala/util/IcebergUtil.java M fe/src/test/java/org/apache/impala/util/IcebergUtilTest.java M java/iceberg-rest-catalog-test/src/main/java/org/apache/iceberg/rest/IcebergRestCatalogTest.java A testdata/configs/catalog_configs/iceberg_rest_planning_config/rest.properties A testdata/workloads/functional-query/queries/QueryTest/iceberg-rest-catalog-server-planning.test M tests/custom_cluster/test_iceberg_rest_catalog.py 9 files changed, 191 insertions(+), 21 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/69/25569/1 -- To view, visit https://gerrit.cloudera.org/25569 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I371a632acad547543e943918051edb11069e2bd7 Gerrit-Change-Number: 25569 Gerrit-PatchSet: 1 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>
