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

vtgate - possible query parsing regression using index hints #8148

Closed
guidoiaquinti opened this issue May 19, 2021 · 1 comment · Fixed by #8160
Closed

vtgate - possible query parsing regression using index hints #8148

guidoiaquinti opened this issue May 19, 2021 · 1 comment · Fixed by #8160

Comments

@guidoiaquinti
Copy link
Member

Overview of the Issue

Possible regression in vtgate query parsing from Vitess 8 to 9 using index hints.

Reproduction Steps

Disclaimer: I didn't test the repro on vanilla Vitess but our internal version shouldn't differ a lot (at least in the query parsing)

  • Vitess 8.0

    > SELECT id FROM blog_posts USE INDEX (PRIMARY) WHERE id = 10;
    +------+
    |   id |
    |------|
    |   10 |
    +------+
    1 row in set
    Time: 0.004s
    
  • Vitess 9.0

    > SELECT id FROM blog_posts USE INDEX (PRIMARY) WHERE id = 10;
    (1105, "vtgate: http://vtgate:15000/: syntax error at position 67 near 'PRIMARY'")
    

Binary version

See above.

@guidoiaquinti
Copy link
Member Author

Thank you! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants