Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

feat: support statement tags in hints#1579

Merged
olavloite merged 1 commit intomainfrom
client-side-hints
Apr 21, 2024
Merged

feat: support statement tags in hints#1579
olavloite merged 1 commit intomainfrom
client-side-hints

Conversation

@olavloite
Copy link
Copy Markdown
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 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
@olavloite olavloite deleted the client-side-hints branch April 21, 2024 07:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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