Skip to content

GEOMETRY/GEOGRAPHY column metadata omits SRID (type_text should carry it, e.g. GEOMETRY(0) / GEOGRAPHY(4326)) #236

Closed as not planned

Description

@vikrantpuppala

Summary

For result-set columns of type GEOMETRY / GEOGRAPHY, the kernel's SEA manifest surfaces only the bare type name (type_name = GEOMETRY, type_text = GEOMETRY) with no SRID. The reference Databricks ODBC driver (Simba 2.12) reports the SRID as a type parameter: GEOMETRY(0) and GEOGRAPHY(4326).

Where it shows up

Cross-driver ODBC comparator (Simba vs OSS databricks-odbc), on a column of each geo type:

Column Reference (Simba) type_name OSS ODBC type_name
geometry column GEOMETRY(0) GEOMETRY
geography column GEOGRAPHY(4326) GEOGRAPHY

Root cause (in the kernel, not the ODBC driver)

The ODBC driver derives a column's reported type from the manifest type_name / type_text it receives from the kernel. For parameterized types the kernel does carry the parameters in type_text (e.g. DECIMAL(10,2), VARCHAR(10)), and the ODBC driver parses those. But for GEOMETRY / GEOGRAPHY the manifest type_text is bare — the SRID is not included — so the ODBC driver has nothing to report. (Kernel maps both to JDBC_OTHER with no SRID parsing in type_mapping.rs.)

So the SRID (0 for GEOMETRY, 4326/WGS84 for GEOGRAPHY here) is data the kernel does not expose in the column manifest today.

Ask

Surface the SRID in the geo column's manifest type_text (e.g. GEOMETRY(0), GEOGRAPHY(4326)), matching the reference driver, so every downstream xDBC driver (ODBC/ADBC/PyO3/napi) can report it consistently. Reference: databricks-odbc comparator finding (GEOMETRY/GEOGRAPHY SRID). ODBC driver already parses parenthesized type params, so once the kernel provides it the ODBC side likely needs little/no change.

Activity

  1. added
    enhancement
    on Aug 10, 2026
  2. github-actions commented on Sep 10, 2026

    @github-actions

    This issue has been marked as Stale because it has been open for 30 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue.

  3. github-actions commented on Oct 11, 2026

    @github-actions

    This issue has been marked as Stale because it has been open for 30 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue.

  4. github-actions commented on Oct 19, 2026

    @github-actions

    This issue was closed because it has been inactive for 7 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staleenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions