Uh oh!
There was an error while loading. Please reload this page.
[function](json) Json unquote - #18037
Conversation
clang-tidy review says "All clean, LGTM! 👍" |
PR approved by anyone and no changes requested. |
Yukang-Lian
commented
Mar 25, 2023
run buildall |
1 similar comment
dataroaring
commented
Mar 25, 2023
run buildall |
dataroaring
commented
Mar 25, 2023
add a regression test for normal string and "". |
TeamCity pipeline, clickbench performance test result: |
Mellorsssss
commented
Mar 25, 2023
done |
Mellorsssss
commented
Mar 25, 2023
run buildall |
| } | ||
| const auto& data = col_from_string->get_data_at(i); | ||
| if (data.size < 2 || data.data[0] != '"' || data.data[data.size - 1] != '"') { |
There was a problem hiding this comment.
If data.size == 0, data[0] should not be used.
There was a problem hiding this comment.
If the data.size == 0, then data.data[0] will not be evaluated since data.size < 2 will be true. I add a test case for the empty string ''.
| continue; | ||
| } | ||
| const auto& data = col_from_string->get_data_at(i); |
There was a problem hiding this comment.
The name data.data is strange. Can you change variable data to json_str?
There was a problem hiding this comment.
Thanks xiaokang! I will rename it.
clang-tidy review says "All clean, LGTM! 👍" |
Mellorsssss
commented
Mar 25, 2023
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
Mellorsssss
commented
Mar 25, 2023
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
Mellorsssss
commented
Mar 26, 2023
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
nextdreamblue
commented
Mar 27, 2023
LGTM |
clang-tidy review says "All clean, LGTM! 👍" |
Mellorsssss
commented
Mar 29, 2023
run buildall |
Yukang-Lian
commented
Apr 17, 2023
run p1 |
1. add reload and avoid exception when install plugin again 2. add json_valid function (apache#17247) 3. add json unquote (apache#18037) 4. add json->operator convert to json_extract (apache#19899) 5. add json_contains function (apache#20824) 6. add DLC catalog support (apache#20314)
Proposed changes
Issue Number: close#17216
Problem summary
Implement json_unquote.
Checklist(Required)
Further comments
Currently, the NO_BACKSLASH_ESCAPES sql mode specified in the MySQL documentation at does not actually take effect. Therefore, even if a user enables NO_BACKSLASH_ESCAPES, the behavior of json_unquote will not change.