Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support statement tags in hints #1579

Merged
merged 1 commit into from
Apr 21, 2024
Merged

feat: support statement tags in hints #1579

merged 1 commit into from
Apr 21, 2024

Conversation

olavloite
Copy link
Collaborator

The JDBC driver now supports setting statement tags and RPC priority as a statement hint.

Usage:

  • @{STATEMENT_TAG='my-tag'} SELECT 1; (GoogleSQL)
  • /*@STATEMENT_TAG='my-tag'*/ SELECT 1; (PostgreSQL)

Also, RPC priority can be set using a statement hint:

  • @{RPC_PRIORITY=PRIORITY_LOW} SELECT 1; (GoogleSQL)
  • /*@RPC_PRIORITY=PRIORITY_LOW*/ SELECT 1; (PostgreSQL)

@olavloite olavloite requested a review from a team as a code owner April 21, 2024 06:43
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner-jdbc API. labels Apr 21, 2024
@olavloite olavloite merged commit 0c3aec1 into main Apr 21, 2024
25 of 26 checks passed
@olavloite olavloite deleted the client-side-hints branch April 21, 2024 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/java-spanner-jdbc API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant