-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[feature](json-function) add json_insert, json_replace, json_set functions #24384
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
TeamCity be ut coverage result: |
(From new machine)TeamCity pipeline, clickbench performance test result: |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
TeamCity be ut coverage result: |
(From new machine)TeamCity pipeline, clickbench performance test result: |
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
TeamCity be ut coverage result: |
run p0 |
@@ -1131,6 +1131,319 @@ class FunctionJsonUnquote : public IFunction { | |||
} | |||
}; | |||
|
|||
struct FunctionJsonInsert { | |||
static constexpr auto name = "json_insert"; | |||
static constexpr auto is_insert = true; |
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.
why not use enum? boolean value is not intuitive
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.
I will do it.
auto tok = get_json_token(path_string); | ||
#endif | ||
std::vector<std::string> paths(tok.begin(), tok.end()); | ||
auto status = get_parsed_paths_with_status(paths, &parsed_paths); |
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.
why not use macro RETURN_IF_ERROR?
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.
ok
|
||
std::vector<std::vector<std::vector<JsonPath>>> json_paths; | ||
auto status = get_parsed_path_columns(json_paths, data_columns, input_rows_count); | ||
if (UNLIKELY(status != Status::OK())) { |
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.
use macro RETURN_IF_ERROR?
clang-tidy review says "All clean, LGTM! 👍" |
run buildall |
TeamCity be ut coverage result: |
(From new machine)TeamCity pipeline, clickbench performance test result: |
run p0 |
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. |
run buildall |
(From new machine)TeamCity pipeline, clickbench performance test result: |
TeamCity be ut coverage result: |
run p0 |
1 similar comment
run p0 |
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. |
@xuefengze Hi, the code is conflict. Could you please resolve conflicts? |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
I have resolve the conflict and rebuild all |
(From new machine)TeamCity pipeline, clickbench performance test result: |
TeamCity be ut coverage result: |
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. |
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
…tions (apache#24384) [feature](json-function) add three json funcitons
…tions (#24384) [feature](json-function) add three json funcitons
Proposed changes
Issue Number: close #21268
add json_insert, json_replace, json_set functions
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...