-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[Feat](json) Support json_search function #40948
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
7496885
to
37f1dc0
Compare
will add doc after pipeline is passed. |
a5eba2f
to
39bbebe
Compare
run buildall |
TPC-H: Total hot run time: 41537 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 198384 ms
|
ClickBench: Total hot run time: 32.47 s
|
39bbebe
to
f92159e
Compare
69b998d
to
dc18098
Compare
run buildall |
TPC-H: Total hot run time: 41812 ms
|
TPC-DS: Total hot run time: 194929 ms
|
ClickBench: Total hot run time: 32.85 s
|
TeamCity be ut coverage result: |
run buildall |
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
TPC-H: Total hot run time: 41605 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 195194 ms
|
ClickBench: Total hot run time: 32.1 s
|
79abcd0
to
6ddbd5b
Compare
6ddbd5b
to
7eae514
Compare
run buildall |
TeamCity be ut coverage result: |
PR approved by at least one committer and no changes requested. |
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.
LGTM
Like mysql, json_search returns the path which point to a json string witch match the pattern. `SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;` ``` +----------+ | res | +----------+ | "$[2].C" | +----------+ ```
Like mysql, json_search returns the path which point to a json string witch match the pattern. `SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;` ``` +----------+ | res | +----------+ | "$[2].C" | +----------+ ```
Like mysql, json_search returns the path which point to a json string witch match the pattern. `SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;` ``` +----------+ | res | +----------+ | "$[2].C" | +----------+ ```
Like mysql, json_search returns the path which point to a json string witch match the pattern. `SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;` ``` +----------+ | res | +----------+ | "$[2].C" | +----------+ ```
cherry-pick #40948 Like mysql, json_search returns the path which point to a json string witch match the pattern. `SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;` ``` +----------+ | res | +----------+ | "$[2].C" | +----------+ ``` Co-authored-by: liutang123 <[email protected]>
Proposed changes
Like mysql, json_search returns the path witch point to a json string witch match the pattern.
SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;
Issue Number: close #xxx