-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add support for matchphrase
as long as match_phrase
(rev. B)
#51
Add support for matchphrase
as long as match_phrase
(rev. B)
#51
Conversation
In the parser, use tokens from the lexer instead of string literals. Signed-off-by: MaxKsyunz <[email protected]>
Signed-off-by: MaxKsyunz <[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]>
Signed-off-by: Yury Fridlyand <[email protected]>
Signed-off-by: MaxKsyunz <[email protected]>
Signed-off-by: MaxKsyunz <[email protected]>
We confirmed that PPL does not need to support matchphrase variant. Signed-off-by: MaxKsyunz <[email protected]>
Codecov Report
@@ Coverage Diff @@
## dev-match_phrase-#185 #51 +/- ##
========================================================
Coverage 97.67% 97.67%
Complexity 2743 2743
========================================================
Files 267 267
Lines 6807 6809 +2
Branches 437 437
========================================================
+ Hits 6649 6651 +2
Misses 157 157
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -35,4 +35,17 @@ void match_in_having() throws IOException { | |||
verifyDataRows(result, rows("Bates")); | |||
} | |||
|
|||
@Test | |||
void match_phrase_in_where() throws IOException { | |||
JSONObject result = executeQuery("SELECT firstname WHERE match_phrase(lastname, 'Bates')"); |
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.
Don't these SELECT statements need FROM clauses?
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.
You are right -- removed until the tests work.
Signed-off-by: MaxKsyunz <[email protected]>
89c44ed
to
2b95ff1
Compare
Signed-off-by: MaxKsyunz <[email protected]>
Description
A duplicate of #49, but based on most recent code.
The proposed changes add support for
matchphrase
function which mapped asmatch_phrase
.Issues Resolved
opensearch-project#185, p.3
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.