Csaba Ringhofer has posted comments on this change. ( https://gerrit.cloudera.org/24536 )
Change subject: IMPALA-15162: Add GEOMETRY column support for Iceberg and Parquet ...................................................................... Patch Set 26: (5 comments) https://gerrit.cloudera.org/#/c/24536/23/fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java File fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java: https://gerrit.cloudera.org/#/c/24536/23/fe/src/main/java/org/apache/impala/analysis/AnalysisContext.java@574 PS23, Line 574: ctx_ = ctx; > For the record, I disagree with this approach. It gives the clients more f ack https://gerrit.cloudera.org/#/c/24536/23/fe/src/main/java/org/apache/impala/analysis/TableDef.java File fe/src/main/java/org/apache/impala/analysis/TableDef.java: https://gerrit.cloudera.org/#/c/24536/23/fe/src/main/java/org/apache/impala/analysis/TableDef.java@466 PS23, Line 466: String fmtVer = getTblProperties().get(IcebergTable.FORMAT_VERSION); : Integer formatVersion = (fmtVer != null && !fmtVer.trim().isEmpty()) : ? Ints.tryParse(fmtVer.trim()) : null; > I don't like how this Iceberg table version property parsing code is repeat I have a separate draft patch for cleaning up this are, now that uuid and variant I merged I can return to it. The main idea is to have "TableKind" type hierarchy where we can express Iceberg v1/v2/v3 as subclasses of Iceberg table and specify capabilities at one place. https://gerrit.cloudera.org/#/c/24536/23/fe/src/main/java/org/apache/impala/util/IcebergSchemaConverter.java File fe/src/main/java/org/apache/impala/util/IcebergSchemaConverter.java: https://gerrit.cloudera.org/#/c/24536/23/fe/src/main/java/org/apache/impala/util/IcebergSchemaConverter.java@106 PS23, Line 106: if (!crs.equalsIgnoreCase(Types.GeometryType.DEFAULT_CRS)) { > This line is not quite doing what the comment says. Right now, it is calli done, moved to case insensitive compare https://gerrit.cloudera.org/#/c/24536/23/java/shaded-deps/impala-iceberg-runtime/src/main/java/org/apache/iceberg/hive/HiveSchemaUtil.java File java/shaded-deps/impala-iceberg-runtime/src/main/java/org/apache/iceberg/hive/HiveSchemaUtil.java: https://gerrit.cloudera.org/#/c/24536/23/java/shaded-deps/impala-iceberg-runtime/src/main/java/org/apache/iceberg/hive/HiveSchemaUtil.java@40 PS23, Line 40: public final class HiveSchemaUtil { > Since there is no git history for this file, please add a comment stating w Added to commit message that this was based on Iceberg 1.11 (no changes since that time, it is the same in 1.12) https://gerrit.cloudera.org/#/c/24536/23/tests/query_test/test_geospatial_functions.py File tests/query_test/test_geospatial_functions.py: https://gerrit.cloudera.org/#/c/24536/23/tests/query_test/test_geospatial_functions.py@119 PS23, Line 119: def _create_geometry_table_with_crs(self, unique_database, tmpdir, tbl, crs_type): > I think we should also add test cases like this one except the geometry typ Done -- To view, visit https://gerrit.cloudera.org/24536 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I32d8c12a6b71708646fbfc06a6dd8f7aaf4f5e6b Gerrit-Change-Number: 24536 Gerrit-PatchSet: 26 Gerrit-Owner: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Arnab Karmakar <[email protected]> Gerrit-Reviewer: Balazs Hevele <[email protected]> Gerrit-Reviewer: Csaba Ringhofer <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Jason Fehr <[email protected]> Gerrit-Comment-Date: Tue, 24 Nov 2026 15:04:02 +0000 Gerrit-HasComments: Yes
