Nandor Kollar has uploaded this change for review. ( http://gerrit.cloudera.org:8080/24994
Change subject: IMPALA-13591: Fix NPE when dropping column used in old partition spec ...................................................................... IMPALA-13591: Fix NPE when dropping column used in old partition spec Dropping an Iceberg column that was previously used in a partition spec (but no longer in the active spec) causes an NPE during table metadata reload. convertPartitionSpec() assumes all partition field source columns exist in the current schema, which fails after spec evolution + column drop. When findColumnName() returns null for a dropped source column, create a VOID placeholder partition field instead of crashing. The BE already skips VOID fields everywhere it iterates partition specs. Testing: Added regression test in iceberg-alter-v2.test that creates a table with bucket(7, p), evolves to bucket(7, i), drops column p, and verifies both DDL success and data readability. Change-Id: Ie5f1439b31d7f460008760909306607018ac094f Assisted-by: Claude Opus 4.6 (Claude Code) --- M fe/src/main/java/org/apache/impala/catalog/FeIcebergTable.java M testdata/workloads/functional-query/queries/QueryTest/iceberg-alter-v2.test 2 files changed, 40 insertions(+), 5 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/94/24994/1 -- To view, visit http://gerrit.cloudera.org:8080/24994 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ie5f1439b31d7f460008760909306607018ac094f Gerrit-Change-Number: 24994 Gerrit-PatchSet: 1 Gerrit-Owner: Nandor Kollar <[email protected]>
