Repository navigation
Support geotypes for iceberg - #103113
Support geotypes for iceberg#103113
Conversation
|
Workflow [PR], commit [c794a22] Summary: ❌
AI ReviewSummaryThis PR adds Findings
ClickHouse Rules
Final Verdict
|
d099357 to
768994a
Compare
| bool hasClickhouseTableSchemaById(Int32 id) const; | ||
|
|
||
| static DataTypePtr getSimpleType(const String & type_name); | ||
| static DataTypePtr getSimpleType(const String & type_name, bool allow_geo_parser = true); |
There was a problem hiding this comment.
getSimpleType still defaults allow_geo_parser to true, so any call site that does not thread the new setting will parse geometry/geography as Geometry even when allow_experimental_geo_types_in_iceberg=0. One concrete path is DataLake::getType in src/Databases/DataLake/Common.cpp, which calls IcebergSchemaProcessor::getSimpleType(name) without the flag.
Please make the default false (or remove the default and require explicit opt-in at every call site) so the experimental gate is enforced consistently.
There was a problem hiding this comment.
makes sense, maybe set default to false. @scanhex12 wdyt?
e1af346 to
2b9b9f2
Compare
SmitaRKulkarni
left a comment
There was a problem hiding this comment.
CI fails looks relevant, rest all LGTM
e0179ce to
ed3cf19
Compare
| auto table_path = configuration->getPathForRead().path; | ||
| return PersistentTableComponents{ | ||
| .schema_processor = std::make_shared<IcebergSchemaProcessor>(), | ||
| .schema_processor = std::make_shared<IcebergSchemaProcessor>(context_->getSettingsRef()[Setting::allow_experimental_geo_types_in_iceberg]), |
There was a problem hiding this comment.
This wires allow_experimental_geo_types_in_iceberg for the IcebergMetadata path, but RestCatalog still constructs IcebergSchemaProcessor() without threading the same setting (src/Databases/DataLake/RestCatalog.cpp, around line 913).
As a result, Iceberg tables reached via REST catalog ignore the session setting and keep rejecting geometry/geography even when the feature is explicitly enabled. Please pass context->getSettingsRef()[Setting::allow_experimental_geo_types_in_iceberg] there as well so behavior is consistent across Iceberg entry points.
LLVM Coverage Report
Changed lines: 43.23% (83/192) | lost baseline coverage: 7 line(s) · Uncovered code |
e7d46c6
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Support geotypes for iceberg
Documentation entry for user-facing changes