fix(csharp): metadata(csharp): Thrift GetColumns throws NotSupportedException on GEOMETRY/GEOGRAPHY columns (#568) - #578
Open
peco-engineer-bot[bot] wants to merge 1 commit into
Open
Conversation
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.
Summary
Automated fix for #568 — metadata(csharp): Thrift GetColumns throws NotSupportedException on GEOMETRY/GEOGRAPHY columns.
Overrode SetPrecisionScaleAndTypeName in the editable DatabricksConnection to use SqlTypeNameParser.TryParse with a graceful fallback (raw type name + derived base type name) for SQL types the parser registry has no entry for (GEOMETRY/GEOGRAPHY), instead of the base class calling Parse which throws NotSupportedException. Verified via the two live-endpoint E2E tests, which now pass (both were red before the fix).
Files changed
csharp/test/E2E/StatementTests.cscsharp/src/DatabricksConnection.cs.claude/knowledge/learning.mdTest plan
AdbcDrivers.Databricks.Tests.StatementTests.CanGetColumnsOnGeospatialColumn(geoType: "GEOMETRY"— fails (red) against the original code, passes (green) after the fixcolumnName: "geom_col")— fails (red) against the original code, passes (green) after the fixAdbcDrivers.Databricks.Tests.StatementTests.CanGetColumnsOnGeospatialColumn(geoType: "GEOGRAPHY"— fails (red) against the original code, passes (green) after the fixcolumnName: "geog_col")— fails (red) against the original code, passes (green) after the fixFixes #568
🤖 Generated by engineer-bot (bug-fix flow)
Not changed in this PR (out of scope)
These facets could not be fixed here. Reason given for each — please follow up as needed: