-
Notifications
You must be signed in to change notification settings - Fork 145
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
PPL: Add json_object
command
#3242
Open
acarbonetto
wants to merge
29
commits into
opensearch-project:main
Choose a base branch
from
Bit-Quill:feature/acarbo_json_object_ppl
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
f82554b
added implementation
14yapkc1 08e16ff
added doctest, integ-tests, and unit tests
14yapkc1 ebb5cc3
addressed pr comments
kenrickyap b094dec
addressed PR comments
kenrickyap 373e53d
removed unused dependencies
kenrickyap 18a3cb3
linting
kenrickyap 372fd33
addressed pr comment and rolling back disabled test case
kenrickyap be33ff4
removed disabled import
kenrickyap b3a5eae
nit
kenrickyap 6397af4
Update integ-test/src/test/java/org/opensearch/sql/ppl/JsonFunctionIT…
kenrickyap 6d9c50a
fixed integ test
kenrickyap 5b1f6de
json_valid: null and missing should return false
acarbonetto 182a266
PPL: Add json and cast to json functions
acarbonetto 80afe48
PPL: Update json cast for review
acarbonetto 7d212b8
Fix testes
acarbonetto 0e8bf0b
SPOTLESS
acarbonetto bc11951
Clean up for merge
acarbonetto d708a69
Add cast to scalar from undefined expression
acarbonetto c76a3fa
Add test for missing/null
acarbonetto 26623c9
Clean up merge conflicts
acarbonetto 1af9053
Fix jacoco coverage
acarbonetto 122cd1d
Move to Switch by json type
acarbonetto cbc0552
Add JSON_OBJECT to ppl
acarbonetto 423365b
SPOTLESS
acarbonetto 09231fb
Fix doctest
acarbonetto 4759311
Fix merge conflicts and tests
acarbonetto 2dd3fc6
Fix merge conflicts
acarbonetto bb46eb9
Fix IT tests
acarbonetto bc4ca96
Fix IT tests
acarbonetto 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 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 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 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 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 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 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 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 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.
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.
@acarbonetto a naive question - do we have more use cases of kv pairs such as this one ?
if so would it make sense to move this code into a more generic place?
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.
Interesting question - no. json_object is very unique. Although we do have cases of path-value pairings, we're going to treat them differently.