Arnab Karmakar has uploaded this change for review. ( 
https://gerrit.cloudera.org/25635


Change subject: IMPALA-15805: Support partitioned writes on Iceberg UUID columns
......................................................................

IMPALA-15805: Support partitioned writes on Iceberg UUID columns

Allow INSERT and CTAS into Iceberg tables partitioned on a UUID column
with identity, bucket or void transforms, including evolved specs.

Partition values are handled as follows:
- Directory paths use the transformed value: the canonical 36-character
  string for identity partitions, the bucket number for bucket
  partitions.
- Manifests and manifest lists store identity partition values as
  16-byte binary, and bucket values as INT.

Key changes:
- BE: Register iceberg_bucket_transform(UUID, INT). A UUID reaches the
  BE as a 16-byte StringVal, which is what Iceberg hashes with Murmur3,
  so it reuses the existing StringVal overload of
  BucketPartitionTransform.
- FE: Remove IcebergUtil.validateNoUuidPartitionSources(), which
  rejected UUID partition source columns. UPDATE, MERGE and OPTIMIZE
  stay rejected (IMPALA-15456).

Testing:
- BE: TestUuid checks the Iceberg spec vector (f79c3e09-... hashes to
  1488055340), edge UUIDs and NULL.
- FE: AnalyzeStmtsTest CTAS with UUID identity and bucket partitions.
- E2E: iceberg-uuid-write.test covers partitioned writes, pruning,
  DROP PARTITION, CTAS and malformed UUID values.
- Trino interop: each engine reads and appends to partitioned UUID
  tables written by the other.

Change-Id: I8b74fe9b4cf8bfe196c1736c7c8c710ef5d7a3a8
Assisted-by: Claude Sonnet 5.5 (Cursor)
---
M be/src/exprs/iceberg-functions-test.cc
M common/function-registry/impala_functions.py
M fe/src/main/java/org/apache/impala/util/IcebergUtil.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzeStmtsTest.java
M 
testdata/workloads/functional-query/queries/QueryTest/iceberg-trino-interop-uuid.test
M testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test
M tests/custom_cluster/test_iceberg_trino_interop.py
7 files changed, 435 insertions(+), 40 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/35/25635/1
--
To view, visit https://gerrit.cloudera.org/25635
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8b74fe9b4cf8bfe196c1736c7c8c710ef5d7a3a8
Gerrit-Change-Number: 25635
Gerrit-PatchSet: 1
Gerrit-Owner: Arnab Karmakar <[email protected]>

Reply via email to