-
Notifications
You must be signed in to change notification settings - Fork 141
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
Disallow unquoted literals in LIKE
clause in DESCRIBE
statement
#1181
Merged
dai-chen
merged 4 commits into
opensearch-project:main
from
Bit-Quill:integ-unquoted-percent-in-like-clause
Jan 4, 2023
Merged
Disallow unquoted literals in LIKE
clause in DESCRIBE
statement
#1181
dai-chen
merged 4 commits into
opensearch-project:main
from
Bit-Quill:integ-unquoted-percent-in-like-clause
Jan 4, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Yury-Fridlyand
added
SQL
breaking
legacy
Issues related to legacy query engine to be deprecated
labels
Dec 15, 2022
This comment was marked as spam.
This comment was marked as spam.
The syntax section should be changed. |
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Yury-Fridlyand
force-pushed
the
integ-unquoted-percent-in-like-clause
branch
from
January 4, 2023 01:21
6169755
to
ac4875f
Compare
Rebased and updated in ac4875f. |
penghuo
approved these changes
Jan 4, 2023
dai-chen
approved these changes
Jan 4, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix!
YANG-DB
pushed a commit
to YANG-DB/sql
that referenced
this pull request
Jan 6, 2023
…pensearch-project#1181) * Allow quoted literals only in `DESCRIBE` and `SHOW` clauses. Tests. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. - Typo fix. Signed-off-by: Yury-Fridlyand <[email protected]> * Update syntax section. Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Creation and updating 2.x branch (opensearch-project#6) * Create the 2.x branch * Add workflow_dispatch: to github CLI Signed-off-by: YANGDB <[email protected]>
6 tasks
YANG-DB
added a commit
to YANG-DB/sql
that referenced
this pull request
Jan 6, 2023
…pensearch-project#1181) (#3) * Allow quoted literals only in `DESCRIBE` and `SHOW` clauses. Tests. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. - Typo fix. Signed-off-by: Yury-Fridlyand <[email protected]> * Update syntax section. Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Yury-Fridlyand <[email protected]>
YANG-DB
added a commit
that referenced
this pull request
Jan 13, 2023
* remove sub-folders which upgraded as new repositories - sql-cli - sql-odbc - sql-jdbc - dashboards-query-workbench - add additional workflow run triggers - move the BI tests to jdbc/odbc - move the sql-cli outside and clone for the doctest build Signed-off-by: YANGDB <[email protected]> * Merge remote-tracking branch 'upstream/main' Signed-off-by: YANGDB <[email protected]> * add sql-jdbc dependendcy to gradle Signed-off-by: YANGDB <[email protected]> * Disallow unquoted literals in `LIKE` clause in `DESCRIBE` statement (#1181) * Allow quoted literals only in `DESCRIBE` and `SHOW` clauses. Tests. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. - Typo fix. Signed-off-by: Yury-Fridlyand <[email protected]> * Update syntax section. Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Creation and updating 2.x branch (#6) * Create the 2.x branch * Add workflow_dispatch: to github CLI Signed-off-by: YANGDB <[email protected]> * remove sub-folders which upgraded as new repositories - sql-cli - sql-odbc - sql-jdbc - dashboards-query-workbench Signed-off-by: YANG-DB <[email protected]> * add additional workflow run triggers Signed-off-by: YANGDB <[email protected]> * Merge remote-tracking branch 'upstream/main' - move the BI tests to jdbc/odbc - move the sql-cli outside and clone for the doctest build Signed-off-by: YANGDB <[email protected]> * Disallow unquoted literals in `LIKE` clause in `DESCRIBE` statement (#1181) (#3) * Allow quoted literals only in `DESCRIBE` and `SHOW` clauses. Tests. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. Signed-off-by: Yury-Fridlyand <[email protected]> * Fix doctest after rebase. - Typo fix. Signed-off-by: Yury-Fridlyand <[email protected]> * Update syntax section. Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: Yury-Fridlyand <[email protected]> Signed-off-by: YANG-DB <[email protected]> Signed-off-by: YANGDB <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Signed-off-by: Yury-Fridlyand <[email protected]> Co-authored-by: lior perry <[email protected]> Co-authored-by: yang-db <[email protected]> Co-authored-by: Yury-Fridlyand <[email protected]>
This was referenced Jun 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Update SQL parser to disallow unquoted strings as identifiers wildcards clause.
To test this fix for #650 disable legacy engine first:
Before
With patch, without fix
After
Another queries for test:
and
Notes
As discussed, we should prohibit usage of raw identifies in SQL queries where wildcards are allowed. A user should specify string literal instead (a quoted string with
'
or"
). Backtick quote`
is not accepted.This behavior was copied from legacy engine and it is an erroneous approach.
The root cause of #650 is a
keywordsCanBeId
which was in the user query which cased V2 parser to fail and fall back to V1.Breaking change for 3.x release. Don't backport.
See team review and discussion in Bit-Quill#154.
Issues Resolved
Fixes #650
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.