Repository navigation
[UI] Show geometry and geography column types in the new UI - #2375
Closed
timothyw553 wants to merge 5 commits into
Closed
timothyw553 wants to merge 5 commits into
timothyw553 wants to merge 5 commits into
Conversation
This was referenced Nov 24, 2026
timothyw553
force-pushed
the
stack/geotypes-ui
branch
4 times, most recently
from
November 27, 2026 10:47
2adeb53 to
1f11e5d
Compare
Add GEOMETRY and GEOGRAPHY to ColumnTypeName in api/all.yaml (appended so existing ordinals stay unchanged). Widen the ordinal CHECK constraints on uc_functions.data_type and uc_function_params.type_name from 0..21 to 0..23 across H2, PostgreSQL, and MySQL: - V17 / V19 (SQL): add named CHECK (0..23) constraints on uc_functions and uc_function_params. - V18 / V20 (Java migrations): look up and drop the old unnamed 0..21 CHECK constraints by clause so upgrades work on both fresh and repaired databases. Update SchemaMigrator, MigrationStepRulesTest, and schema-effects for all three databases, and add SdkFunctionCRUDTest coverage for GEOMETRY and GEOGRAPHY function parameters and return types. Signed-off-by: Timothy Wang <[email protected]>
Resolve the geo type strings Delta Kernel parses (geometry[(crs)], geography[(crs[, algorithm])|(algorithm)]) to GEOMETRY and GEOGRAPHY, and keep the string as type_text so the CRS and algorithm survive. type_json already carries it. Without this a Delta table with a geo column is rejected at create time as an unsupported primitive. A geography algorithm Delta does not define is rejected with INVALID_ARGUMENT, as Kernel does; other malformed forms fall through to the existing unsupported-primitive error. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
Iceberg 1.11 defines geometry(crs) and geography(crs, algorithm), so map them to GEOMETRY and GEOGRAPHY instead of rejecting the table, and drop the comment that said Iceberg has no such types. type_text and type_json carry the Delta form, geometry(<crs>) and geography(<crs>, <algorithm>). Iceberg accepts any CRS string, but Delta clients only parse <authority>:<code>, so another CRS is rejected up front rather than stored as a type they can't read. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
Accept GEOMETRY and GEOGRAPHY, with an optional CRS and algorithm, in `table create --columns`, and keep them in type_text and type_json. When reading a Delta table, take a geo column's Kernel type from its type_json, which holds the CRS and algorithm, and show its WKB value as hex instead of failing with an unsupported data type. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
Add GEOMETRY and GEOGRAPHY to the ColumnTypeName proto enum, and map them in the bridge. Without this a geo column in a table comes back as UNSPECIFIED. The bridge change was not compiled or tested here, because crates.io is not reachable from the build host. Co-authored-by: Isaac <[email protected]> Signed-off-by: Timothy Wang <[email protected]>
timothyw553
force-pushed
the
stack/geotypes-ui
branch
from
November 30, 2026 10:13
1f11e5d to
10338d7
Compare
Collaborator
Author
|
Folded into #2373. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🥞 Stacked PR
Use this link to review incremental changes.
PR Checklist
docsis updated (in [Docs] Document the geometry and geography types #2374)Description of changes
Adds
COLUMN_TYPE_NAME_GEOMETRYandCOLUMN_TYPE_NAME_GEOGRAPHYto theui-newprotobuf enum and maps"GEOMETRY"/"GEOGRAPHY"in the Rust bridge so geo columns do not come back asUNSPECIFIED.Tested with
buf lint,buf build, andui-new/webtests locally;ui-new/server(Rust) still needs acargo testrun before marking ready for review becausecrates.iowas unreachable locally and CI does not build it.