Peter Rozsa has uploaded a new patch set (#2). ( 
http://gerrit.cloudera.org:8080/20823 )

Change subject: IMPALA-12605: Fix ALTER TABLE SET PARTITION SPEC field id 
distribution
......................................................................

IMPALA-12605: Fix ALTER TABLE SET PARTITION SPEC field id distribution

This patch modifies the partition specification updating mechanism to
use an updated Iceberg API. The new API preserves the existing
partition specification by, for instance, generating new field IDs for
modified partitioning terms. Additionally, the new API incorporates
transactional support, as a result, the conditional branching based
on the 'needsTxn' criterion has been eliminated. For Iceberg V1 tables,
the new method correctly adds VOID(*) partition transform for removed
fields at updates, for V2 tables, the updated field could be reused,
but their order remains when they are first introduced in the spec,
these changes are reflected in the test changes.

Tests:
 - modified already existing tests

Change-Id: I958107d08e50d7bd9044a57bd2fc02816414012d
---
M fe/src/main/java/org/apache/impala/analysis/IcebergPartitionExpr.java
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
M fe/src/main/java/org/apache/impala/service/IcebergCatalogOpExecutor.java
M fe/src/main/java/org/apache/impala/util/IcebergUtil.java
M 
testdata/workloads/functional-query/queries/QueryTest/iceberg-delete-partitioned.test
M testdata/workloads/functional-query/queries/QueryTest/iceberg-negative.test
M 
testdata/workloads/functional-query/queries/QueryTest/iceberg-partitioned-insert.test
7 files changed, 96 insertions(+), 51 deletions(-)


  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/23/20823/2
--
To view, visit http://gerrit.cloudera.org:8080/20823
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I958107d08e50d7bd9044a57bd2fc02816414012d
Gerrit-Change-Number: 20823
Gerrit-PatchSet: 2
Gerrit-Owner: Peter Rozsa <pro...@cloudera.com>
Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Gerrit-Reviewer: Peter Rozsa <pro...@cloudera.com>
Gerrit-Reviewer: Zoltan Borok-Nagy <borokna...@cloudera.com>

Reply via email to