Arnab Karmakar has posted comments on this change. ( https://gerrit.cloudera.org/25263 )
Change subject: IMPALA-15213: Iceberg UUID Avro read support ...................................................................... Patch Set 6: (9 comments) Thanks for the comments! https://gerrit.cloudera.org/#/c/25263/3//COMMIT_MSG Commit Message: https://gerrit.cloudera.org/#/c/25263/3//COMMIT_MSG@7 PS3, Line 7: IMPALA-15213: Iceberg UUID Avro read support > This also fixes four things that aren't about UUID: the CodegenReadRecord c Done https://gerrit.cloudera.org/#/c/25263/3//COMMIT_MSG@41 PS3, Line 41: > the "count(*)" path isn't changed, only the overlap-predicate ones. Done https://gerrit.cloudera.org/#/c/25263/3/be/src/exec/avro/hdfs-avro-scanner.cc File be/src/exec/avro/hdfs-avro-scanner.cc: https://gerrit.cloudera.org/#/c/25263/3/be/src/exec/avro/hdfs-avro-scanner.cc@205 PS3, Line 205: while (num_entries != 0) { > avro_schema_equal() compares record and fixed names. Iceberg files use 'tab Handled in IMPALA-15715. https://gerrit.cloudera.org/#/c/25263/3/be/src/util/decompress-test.cc File be/src/util/decompress-test.cc: https://gerrit.cloudera.org/#/c/25263/3/be/src/util/decompress-test.cc@614 PS3, Line 614: s without content size, as some > Nit: the comment says "two concatenated frames", but each frame is decompre Handled in IMPALA-15715. https://gerrit.cloudera.org/#/c/25263/3/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java File fe/src/main/java/org/apache/impala/catalog/HdfsTable.java: https://gerrit.cloudera.org/#/c/25263/3/fe/src/main/java/org/apache/impala/catalog/HdfsTable.java@1880 PS3, Line 1880: > Nit: why replaceAll("-", "_")? Table and db names can't contain '-'. Yeah, right. Ive removed the replaceAll(). We have one more pre-existing in IcebergDeleteTable#toThriftDescriptor(). https://gerrit.cloudera.org/#/c/25263/3/fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java File fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java: https://gerrit.cloudera.org/#/c/25263/3/fe/src/main/java/org/apache/impala/planner/HdfsScanNode.java@950 PS3, Line 950: > The root cause is that for Iceberg, allParquet_ comes from write.format.def Handled in IMPALA-15705. https://gerrit.cloudera.org/#/c/25263/3/fe/src/main/java/org/apache/impala/util/AvroSchemaConverter.java File fe/src/main/java/org/apache/impala/util/AvroSchemaConverter.java: https://gerrit.cloudera.org/#/c/25263/3/fe/src/main/java/org/apache/impala/util/AvroSchemaConverter.java@209 PS3, Line 209: private Schema createRecordSchema(List<StructField> fields) { > Nested fields have no default, so if a field is added to a struct (e.g. by Done. Using Schema.NULL_VALUE required another change in the scanner. In ResolveSchemas() (hdfs-avro-scanner.cc), when a field is missing from the file, the code writes the default and then does continue. For a missing intermediate struct, continue keeps the parent record as the current table record, so the next path index is applied to the wrong record. I changed continue to break and removed the DCHECK. https://gerrit.cloudera.org/#/c/25263/3/testdata/workloads/functional-query/queries/QueryTest/iceberg-trino-interop-uuid.test File testdata/workloads/functional-query/queries/QueryTest/iceberg-trino-interop-uuid.test: https://gerrit.cloudera.org/#/c/25263/3/testdata/workloads/functional-query/queries/QueryTest/iceberg-trino-interop-uuid.test@427 PS3, Line 427: ---- TYPES > With the default abort_on_error=false this isn't an error. The Avro files a Thanks for catching this! Ive added a new method checkAvroComplexTypeReadSupported() in the same patch which blocks reading complex types when fileFormats_ has AVRO during planning. https://gerrit.cloudera.org/#/c/25263/3/testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-type.test File testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-type.test: https://gerrit.cloudera.org/#/c/25263/3/testdata/workloads/functional-query/queries/QueryTest/iceberg-uuid-type.test@344 PS3, Line 344: SELECT id, s.t.y, s.t.k, s.t.z, s2.x, s2.k > The core tests only read top-level UUIDs. Nested reads, the NULL struct, zs Created a new fixture for testing nested reads, NULL struct. zstd and codegen crash cases are covered by different tests. -- To view, visit https://gerrit.cloudera.org/25263 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Ic818ecad70f97f3646bbbb885de0b59420b28b44 Gerrit-Change-Number: 25263 Gerrit-PatchSet: 6 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: Mon, 16 Nov 2026 13:07:42 +0000 Gerrit-HasComments: Yes
