Skip to content

feat(kernel): add client query timeout - #483

Closed
cathleeny wants to merge 1 commit into
databricks:mainfrom
cathleeny:feat/client-query-timeout
Closed

cathleeny wants to merge 1 commit into
databricks:mainfrom
cathleeny:feat/client-query-timeout

Conversation

@cathleeny

Copy link
Copy Markdown
Collaborator

Summary

  • Add connector-only WithClientQueryTimeout for the SEA/kernel backend.
  • Omitted keeps kernel_statement_execute and its legacy 600s polling ceiling. Positive values use kernel_statement_execute_with_timeout_ms; zero and maximum time.Duration are unlimited.
  • Bound execution through terminal-state mapping, excluding result materialization/fetching. WithTimeout remains the independent server-side Thrift option.
  • Keep context-cancel cleanup from extending an explicit client deadline while preserving the legacy execute cleanup contract.

Depends on databricks-sql-kernel#339 at ec639bd48e84c64d708a0b70a532e44ecf83ad7c; updated kernel bindings are required before release.

Validation

  • make lint
  • go test -count=1 ./...
  • Kernel-tagged suite and race test against the exact PR 339 archive
  • Live E2E: returned non-retryable HYT00 in 5.002s, then successfully reused the same sql.Conn for SELECT 1

Signed-off-by: cat23123 <58714163+cat23123@users.noreply.github.com>
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.

1 participant