-
Notifications
You must be signed in to change notification settings - Fork 1.1k
spanner-jdbc: Support query hints #6553
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
spanner-jdbc: Support query hints #6553
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6553 +/- ##
============================================
+ Coverage 46.34% 46.35% +<.01%
- Complexity 27997 28001 +4
============================================
Files 2613 2613
Lines 288068 288075 +7
Branches 33778 33779 +1
============================================
+ Hits 133519 133526 +7
Misses 144309 144309
Partials 10240 10240
Continue to review full report at Codecov.
|
...b/google-cloud-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/StatementParser.java
Outdated
Show resolved
Hide resolved
...b/google-cloud-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/StatementParser.java
Outdated
Show resolved
Hide resolved
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
|
@skuruppu I accepted your suggested changes, but apparently that causes GitHub to seem to think that you have not signed the CLA. Could you have a look how that could be solved? |
|
Sorry about the CLA issue @olavloite . I created a branch based on yours and rebased it to fix the email address. Please feel free to reset your branch based on mine or do the rebase again on your own branch. |
efc5fba to
7da39fc
Compare
The Spanner JDBC driver would consider queries that started with a statement hint as invalid statements. This change adds a check for statement hints at the beginning of a query, and accepts these as valid queries. Fixes googleapis#6540.
7da39fc to
66cb698
Compare
|
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
The Spanner JDBC driver would consider queries that started with a statement hint as invalid statements. This change adds a check for statement hints at the beginning of a query, and accepts these as valid queries.
Fixes #6540.
See https://cloud.google.com/spanner/docs/query-syntax#sql-syntax for more information on statement hints.