Uh oh!
There was an error while loading. Please reload this page.
[fix](json-functions)fix json-replace/insert/set/array behavior with … - #50890
Merged
Conversation
…complex type (apache#50308) here are some functions behavior is not same with mysql as JSON_REPLACE | JSON_INSERT | JSON_SET | JSON_ARRAY which json and complex types are not supported before this PR Follow mysql : https://dev.mysql.com/doc/refman/8.0/en/json-modification-functions.html#function_json-set before we will meet result: ``` mysql> insert into t01 values (1, '{"a":1, "b":2}'); Query OK, 1 row affected (0.25 sec) {'label':'label_1056456f8d8c46e5_9be38bb344bdd72c', 'status':'VISIBLE', 'txnId':'8019'} mysql> select b, json_set(b, "$.a", b) from t01; +---------------+-----------------------+ | b | json_set(b, "$.a", b) | +---------------+-----------------------+ | {"a":1,"b":2} | {"a":1,"b":2} | +---------------+-----------------------+ ``` now ``` mysql> select b, json_set(b, "$.a", b) from t01; +---------------+---------------------------+ | b | json_set(b, "$.a", b) | +---------------+---------------------------+ | {"a":1,"b":2} | {"a":{"a":1,"b":2},"b":2} | +---------------+---------------------------+ 1 row in set (0.12 sec) ```
Thearas
commented
May 14, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
amorynan
commented
May 14, 2025
ContributorAuthor
run buildall |
doris-robot
commented
May 14, 2025
TPC-H: Total hot run time: 40017 ms |
doris-robot
commented
May 14, 2025
TPC-DS: Total hot run time: 197806 ms |
hello-stephen
commented
May 14, 2025
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
May 14, 2025
ClickBench: Total hot run time: 32.07 s |
Contributor
PR approved by at least one committer and no changes requested. |
Contributor
PR approved by anyone and no changes requested. |
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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
…complex type (#50308)
here are some functions behavior is not same with mysql as JSON_REPLACE | JSON_INSERT | JSON_SET | JSON_ARRAY
which json and complex types are not supported before this PR Follow mysql :
https://dev.mysql.com/doc/refman/8.0/en/json-modification-functions.html#function_json-set before we will meet result:
now
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)