Skip to content

fix(metadata): order getTypeInfo rows by DATA_TYPE - #1680

Merged
cathleeny merged 1 commit into
mainfrom
codex/fix-gettypeinfo-ordering
Sep 9, 2026
Merged

fix(metadata): order getTypeInfo rows by DATA_TYPE#1680
cathleeny merged 1 commit into
mainfrom
codex/fix-gettypeinfo-ordering

Conversation

@cathleeny

@cathleeny cathleeny commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Reorder the static DatabaseMetaData.getTypeInfo() catalogue so the INTERVAL row is emitted with the other Types.VARCHAR rows, before BOOLEAN, DATE, and TIMESTAMP.
  • Add regression coverage requiring returned DATA_TYPE values to be nondecreasing.
  • Document the user-visible metadata fix in NEXT_CHANGELOG.md.

The catalogue is shared by the Thrift and SEA metadata clients, so this fixes both backends without changing any row contents or type mappings. This also allows databricks-driver-test#1413 to replace its known-failure tripwire with the strict JDBC ordering assertion.

Fixes #1661.

Testing

  • Focused metadata suites: 391 tests passed, 0 failed (MetadataResultSetBuilderTest and DatabricksDatabaseMetaDataTest).
  • Full databricks-jdbc-core suite: 3,640 tests passed, 0 failed, 88 skipped.
  • mvn spotless:check: passed across the full reactor.

Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>

@peco-review-bot peco-review-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@cathleeny
cathleeny added this pull request to the merge queue Sep 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 9, 2026
@cathleeny
cathleeny added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit 8e843f1 Sep 9, 2026
23 of 24 checks passed
@cathleeny
cathleeny deleted the codex/fix-gettypeinfo-ordering branch September 9, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[coverage] METADATA-005: JDBC getTypeInfo INTERVAL row breaks DATA_TYPE ordering

2 participants