forked from opensearch-project/sql
-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for wildcard_query function #156
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
Merged
Merged
Changes from 19 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
a96a740
Implemented wildcard_query and added tests in core
885f04c
Implemented and added tests for sql
4d0dadb
Implemented and added tests for ppl
9c25e66
Implemented and added tests for lucene
efe0ee5
Fixed test for like expression
bedf662
Added parameters to wildcard_query
afbeb44
Added integration tests for ppl and sql
e25d4da
Added docs for doctests
84fcf88
Pulled from 2.x
4708ae2
Fixed issues introduced during merging
e05e5c5
Addressed PR comment
988b40b
Added annotation that was deleted from merging
5c225ce
Fixed merge conflict issues
0b9752c
Addressed some PR comments and handled escaping wildcards
a2ca906
Added tests for wildcard conversion and created data for testing
68c97d6
Added javadoc
a873b27
Changed index name
518c09f
Temporarily changed jackson_version to run GH actions
1101ca3
Added comparison test for wildcard conversion
fc8883c
Removed PPL implementation of wildcard_query
ae46f96
Reverted ppl docs change
a9f5be7
Made namedArgument a static function
bba63ce
Removed extra space
8b7b442
Merge branch 'integ-add-wildcardquery' of github.com:Bit-Quill/opense…
4af9eef
Fixed LIKE query
57aac8e
Fixed LIKE tests and added more tests
0a4af9d
Addressed PR comments
288e29c
Implemented converting text field to keyword. Still needs testing
1fb4973
Added test cases for LIKE in sql and ppl
34ffe13
Addressed PR comments regarding docs
eed3294
Fixed backslashes in docs
86fa737
Added missed backticks in docs
b54a934
Moved escaping wildcard test to common/utils
fede123
Fixed merge conflicts
9da6140
Fixed checkstyle error
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{"index":{"_id":"0"}} | ||
{"Body":"test wildcard"} | ||
{"index":{"_id":"1"}} | ||
{"Body":"test wildcard in the end of the text%"} | ||
{"index":{"_id":"2"}} | ||
{"Body":"%test wildcard in the beginning of the text"} | ||
{"index":{"_id":"3"}} | ||
{"Body":"test wildcard in % the middle of the text"} | ||
{"index":{"_id":"4"}} | ||
{"Body":"test wildcard %% beside each other"} | ||
{"index":{"_id":"5"}} | ||
{"Body":"test wildcard in the end of the text_"} | ||
{"index":{"_id":"6"}} | ||
{"Body":"_test wildcard in the beginning of the text"} | ||
{"index":{"_id":"7"}} | ||
{"Body":"test wildcard in _ the middle of the text"} | ||
{"index":{"_id":"8"}} | ||
{"Body":"test wildcard __ beside each other"} | ||
{"index":{"_id":"9"}} | ||
{"Body":"test backslash wildcard \\_"} |
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"mappings" : { | ||
"properties" : { | ||
"Body" : { | ||
"type" : "keyword" | ||
} | ||
} | ||
} | ||
} |
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.