Impala Public Jenkins has submitted this change and it was merged. ( https://gerrit.cloudera.org/25195 )
Change subject: IMPALA-15638: Don't fail Iceberg scans on invalid UTF-8 bounds ...................................................................... IMPALA-15638: Don't fail Iceberg scans on invalid UTF-8 bounds Parquet files written without the UTF8 annotation store strings as plain BINARY. When such files are migrated to Iceberg, their bounds are truncated to 16 bytes, possibly in the middle of a multi-byte character. When a predicate on such a column was pushed down, Iceberg failed to decode the bound, and the query failed with "RuntimeIOException: Failed to decode value as UTF-8". If planFiles() fails this way, IcebergScanPlanner now plans the scan again without pushing down the predicates. The Calcite planner decides to use the count star optimization before that, assuming that the predicates are pushed down. A precondition check makes such scans fail instead of returning a wrong count if the predicates can't be pushed down. Testing: - Added EE tests with a migrated table, also with delete files and the push down hint. Change-Id: I94cd94633d009d5c8d6130930dc8f86390e96a34 Assisted-by: Claude Opus 5.5 (Claude Code) Reviewed-on: https://gerrit.cloudera.org/25195 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M fe/src/main/java/org/apache/impala/planner/IcebergScanPlanner.java M java/calcite-planner/src/main/java/org/apache/impala/calcite/rel/node/ImpalaHdfsScanRel.java M testdata/workloads/functional-query/queries/QueryTest/iceberg-migrated-tables.test 3 files changed, 106 insertions(+), 2 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit https://gerrit.cloudera.org/25195 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I94cd94633d009d5c8d6130930dc8f86390e96a34 Gerrit-Change-Number: 25195 Gerrit-PatchSet: 8 Gerrit-Owner: Zoltan Borok-Nagy <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Daniel Vanko <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Noemi Pap-Takacs <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
