Hello Zoltan Borok-Nagy, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
https://gerrit.cloudera.org/25574
to look at the new patch set (#5).
Change subject: IMPALA-15455: Add Iceberg UUID write support for INSERT and CTAS
......................................................................
IMPALA-15455: Add Iceberg UUID write support for INSERT and CTAS
Add Iceberg UUID write support so Impala can write UUID columns to
Iceberg Parquet data files as FIXED_LEN_BYTE_ARRAY(16) with the UUID
logical type, including Parquet and Iceberg column stats.
Supported:
- INSERT and CTAS into tables without a UUID partition source column
- DELETE keeps working (position deletes only)
- SORT BY LEXICAL and SORT BY ZORDER on UUID columns
Not supported, and rejected during analysis:
- UPDATE, MERGE and OPTIMIZE on tables with UUID columns
- Writes to tables partitioned on a UUID column, except VOID
- DEFAULT values on UUID columns (CREATE, ADD COLUMN, ALTER SET DEFAULT)
Key changes:
- BE: add a UUID ColumnWriter in hdfs-parquet-table-writer and UUID
min/max stats in parquet-column-stats. Extend
INTERNAL_TO_PARQUET_TYPES to cover TYPE_UUID. Handle UUID in the
Z-order comparator. Read UUID values in IcebergRowReader so metadata
tables can return UUID bounds.
- FE: replace the blanket UUID write check in IcebergUtil with narrower
checks for UUID partition sources (default spec only) and for
UPDATE/MERGE/OPTIMIZE. Reject UUID defaults in IcebergSchemaConverter
instead of failing later in the Iceberg createTable step.
Testing:
- FE analysis tests for UUID writes (INSERT, CTAS, UPDATE, MERGE,
OPTIMIZE, DELETE) and for UUID default rejection in DDL.
- BE unit test for UUID ordering in the Z-order comparator.
- E2E tests for INSERT, CTAS, DELETE, Parquet row-group statistics
pruning with unsigned UUID ordering, Iceberg UUID bounds in the files
metadata table, and the partition and default rejections.
- Trino interop tests where Impala writes UUID columns with INSERT and
CTAS and Trino reads them back.
Change-Id: Id703033729f850af76c7ba8fabaced252da4d42c
Assisted-by: Claude Haiku 5.5 (Cursor)
---
M be/src/exec/iceberg-metadata/iceberg-row-reader.cc
M be/src/exec/iceberg-metadata/iceberg-row-reader.h
M be/src/exec/parquet/hdfs-parquet-table-writer.cc
M be/src/exec/parquet/parquet-column-stats.h
M be/src/exec/parquet/parquet-column-stats.inline.h
M be/src/exec/parquet/parquet-common.h
M be/src/exec/parquet/parquet-metadata-utils.cc
M be/src/runtime/uuid-value.h
M be/src/util/tuple-row-compare-test.cc
M be/src/util/tuple-row-compare.cc
M fe/src/main/java/org/apache/impala/analysis/IcebergMergeImpl.java
M fe/src/main/java/org/apache/impala/analysis/IcebergUpdateImpl.java
M fe/src/main/java/org/apache/impala/analysis/OptimizeStmt.java
M fe/src/main/java/org/apache/impala/util/IcebergSchemaConverter.java
M fe/src/main/java/org/apache/impala/util/IcebergUtil.java
M fe/src/test/java/org/apache/impala/analysis/AnalyzeDDLTest.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-type.test
A testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test
M tests/custom_cluster/test_iceberg_trino_interop.py
M tests/query_test/test_iceberg.py
22 files changed, 506 insertions(+), 48 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/74/25574/5
--
To view, visit https://gerrit.cloudera.org/25574
To unsubscribe, visit https://gerrit.cloudera.org/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Id703033729f850af76c7ba8fabaced252da4d42c
Gerrit-Change-Number: 25574
Gerrit-PatchSet: 5
Gerrit-Owner: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Arnab Karmakar <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>