Skip to content

fix: return HYT00 for query timeouts - #1691

Closed
cathleeny wants to merge 1 commit into
databricks:mainfrom
cathleeny:fix/query-timeout-sqlstate
Closed

cathleeny wants to merge 1 commit into
databricks:mainfrom
cathleeny:fix/query-timeout-sqlstate

Conversation

@cathleeny

@cathleeny cathleeny commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Return SQLSTATE HYT00 when the client-side query timeout expires, matching the Databricks reference JDBC driver.

The SQLSTATE is set only at the client deadline enforcement points: the shared polling timeout handler used by SEA and Thrift, and the outer statement timeout. The default DatabricksTimeoutException mapping is left unchanged so this fix does not globally relabel server-originated or other timeout errors.

Testing

  • Focused statement, SEA, Thrift, and shared timeout tests: 247 passed, 0 failed
  • Full jdbc-core unit suite before the scoping refinement: 3,571 passed, 0 failed
  • Spotless passed under JDK 11

@vikrantpuppala

Copy link
Copy Markdown
Collaborator

Can you add some context on why this change is needed?

Signed-off-by: Cathleen Yan <58714163+cathleeny@users.noreply.github.com>
@cathleeny
cathleeny force-pushed the fix/query-timeout-sqlstate branch from ab03afa to ce39904 Compare September 23, 2026 18:41
@cathleeny cathleeny closed this Sep 23, 2026
@cathleeny

Copy link
Copy Markdown
Collaborator Author

Closing since this is not needed

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.

2 participants