Skip to content

feat(csharp): add preview endpoint support for SEA#328

Open
jadewang-db wants to merge 1 commit intomainfrom
stack/support-preview-endpoint
Open

feat(csharp): add preview endpoint support for SEA#328
jadewang-db wants to merge 1 commit intomainfrom
stack/support-preview-endpoint

Conversation

@jadewang-db
Copy link
Collaborator

@jadewang-db jadewang-db commented Mar 10, 2026

Summary

  • Add UsePreviewEndpoint (adbc.databricks.rest.use_preview_endpoint) configuration parameter to route SEA requests to /2.0/preview/sql/... paths instead of the default /api/2.0/sql/... paths
  • Wire the parameter through StatementExecutionConnection into StatementExecutionClient, which selects the appropriate endpoint constants for sessions and statements
  • Add unit tests verifying endpoint routing for all client operations (create/delete session, execute/get/cancel/close statement, get result chunk) and connection-level property integration

Test plan

  • Unit tests for StatementExecutionClient constructor with usePreviewEndpoint true/false
  • Unit tests verifying all 7 client operations use preview paths when enabled
  • Unit tests verifying standard paths are used when preview is disabled
  • Connection-level tests verifying property parsing and default behavior

🤖 Generated with Claude Code

@jadewang-db jadewang-db changed the title support preview endpoint feat(csharp): add preview endpoint support for SEA Mar 10, 2026
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