Zoltan Borok-Nagy has posted comments on this change. ( 
https://gerrit.cloudera.org/25574 )

Change subject: IMPALA-15455: Add Iceberg UUID write support for INSERT and CTAS
......................................................................


Patch Set 4:

(6 comments)

Thanks for working on this!

https://gerrit.cloudera.org/#/c/25574/4//COMMIT_MSG
Commit Message:

https://gerrit.cloudera.org/#/c/25574/4//COMMIT_MSG@15
PS4, Line 15: - DELETE (position deletes only)
DELETE was never blocked on master: the old UUID check only ran for INSERT, 
UPDATE, MERGE and OPTIMIZE. Maybe say 'DELETE keeps working' so this doesn't 
read as new.


https://gerrit.cloudera.org/#/c/25574/4//COMMIT_MSG@19
PS4, Line 19: - UPDATE, MERGE and OPTIMIZE on tables with UUID columns
Why are these still rejected? They write through the same Parquet writer as 
INSERT. Fine to keep them out of scope, but please give the reason here (or a 
follow-up Jira).


https://gerrit.cloudera.org/#/c/25574/4/be/src/exec/parquet/parquet-column-stats.inline.h
File be/src/exec/parquet/parquet-column-stats.inline.h:

https://gerrit.cloudera.org/#/c/25574/4/be/src/exec/parquet/parquet-column-stats.inline.h@374
PS4, Line 374: inline void ColumnStats<UuidValue>::SerializeIcebergSingleValue(
Impala-written tables now carry UUID bounds, but IcebergRowReader::WriteSlot() 
has no TYPE_UUID case (pre-existing): it DCHECKs in debug and returns NULL in 
release. E.g. SELECT readable_metrics FROM t.files, or 
all_delete_files.partition on a UUID-partitioned table (that one crashed an 
impalad for me). Could you add the case, or a GEOMETRY-style analysis error 
plus a follow-up Jira?


https://gerrit.cloudera.org/#/c/25574/4/testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test
File 
testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test:

https://gerrit.cloudera.org/#/c/25574/4/testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test@151
PS4, Line 151: # A table sorted by Z-order on (id, uuid_col) accepts writes.
With two rows read back by ORDER BY id, neither this test nor the lexical one 
checks the sort order. A UUID case in tuple-row-compare-test.cc (bytes >= 0x80, 
mixed with an INT column) would test the new Z-order branch.


https://gerrit.cloudera.org/#/c/25574/4/testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test@178
PS4, Line 178: # Row-group statistics pruning on UUID columns. Each INSERT 
writes one data file with one
Every file here is entirely below or entirely above 0x80, so signed byte order 
would prune the same row groups. Could you add a file with 7f... and 80... and 
query 90...? Also, nothing checks the Iceberg lower/upper bounds; 
files.lower_bounds/upper_bounds would show the raw 16 bytes.


https://gerrit.cloudera.org/#/c/25574/4/testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-write.test@215
PS4, Line 215: # Partitioned writes on UUID source columns are rejected.
nit: CTAS ... PARTITIONED BY SPEC (uuid_col) is rejected by the same check 
through IcebergCtasTarget, but no test covers it. Worth adding one here or in 
AnalyzeStmtsTest.



--
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: comment
Gerrit-Change-Id: Id703033729f850af76c7ba8fabaced252da4d42c
Gerrit-Change-Number: 25574
Gerrit-PatchSet: 4
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]>
Gerrit-Comment-Date: Thu, 26 Nov 2026 15:39:09 +0000
Gerrit-HasComments: Yes

Reply via email to