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: add hint to support routing queries to vttablet by tablet alias #306

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jairuigou
Copy link
Contributor

@jairuigou jairuigou commented Sep 30, 2023

Description

A SQL statement with tablet alias hint looks like:

SELECT /*vt+ TABLET_ALIAS=zone1-0000000101 */ * FROM user

The tablet alias hint has a higher priority than the tablet type hint(ROLE).

Related Issue(s)

resolve #225

Checklist

  • Tests were added or are not required
    I've added tests for a few simple methods. Please let me know if more tests are needed.
  • Documentation was added or is not required

Signed-off-by: jairuigou <jairuigou@gmail.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.

Feature Request: Add hint to support routing queries to vttablet by tablet alias
1 participant