Uh oh!
There was an error while loading. Please reload this page.
[Fix](Row store) fix row store with invalid json string in variant type - #39394
Merged
Conversation
Previous we allow invalid text as variant in PR apache#37794 and store as string type.But in encoding rowstore we CHECK the json is valid and store as jsonb binary field.In this PR we support the invalid json encoding as row store
doris-robot
commented
Aug 15, 2024
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
eldenmoon
commented
Aug 15, 2024
MemberAuthor
run buildall |
doris-robot
commented
Aug 15, 2024
TPC-H: Total hot run time: 37983 ms |
doris-robot
commented
Aug 15, 2024
TPC-H: Total hot run time: 37434 ms |
doris-robot
commented
Aug 15, 2024
TPC-DS: Total hot run time: 189051 ms |
doris-robot
commented
Aug 15, 2024
ClickBench: Total hot run time: 30.39 s |
Contributor
PR approved by anyone and no changes requested. |
Contributor
PR approved by at least one committer and no changes requested. |
| bool succ = json_parser.parse(value_str.data(), value_str.size()); | ||
| // maybe more graceful, it is ok to check here since data could be parsed | ||
| CHECK(succ); | ||
| if (!succ) { |
Contributor
There was a problem hiding this comment.
if (succ) {
// write binary
} else {
// write string
}
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
1 similar comment
Contributor
clang-tidy review says "All clean, LGTM! 👍" |
eldenmoon
commented
Aug 15, 2024
MemberAuthor
run buildall |
doris-robot
commented
Aug 15, 2024
TPC-H: Total hot run time: 38409 ms |
Contributor
PR approved by at least one committer and no changes requested. |
doris-robot
commented
Aug 15, 2024
TPC-DS: Total hot run time: 196570 ms |
doris-robot
commented
Aug 15, 2024
ClickBench: Total hot run time: 31.58 s |
eldenmoon added a commit
to eldenmoon/incubator-doris
that referenced
this pull request
Aug 16, 2024
…pe (apache#39394) Previous we allow invalid text as variant in PR apache#37794 and store as string type.But in encoding rowstore we CHECK the json is valid and store as jsonb binary field.In this PR we support the invalid json encoding as row store
eldenmoon added a commit
to eldenmoon/incubator-doris
that referenced
this pull request
Aug 16, 2024
…pe (apache#39394) Previous we allow invalid text as variant in PR apache#37794 and store as string type.But in encoding rowstore we CHECK the json is valid and store as jsonb binary field.In this PR we support the invalid json encoding as row store
eldenmoon added a commit
that referenced
this pull request
Aug 16, 2024
Closed
HappenLee pushed a commit
to HappenLee/incubator-doris
that referenced
this pull request
Apr 24, 2026
…pe (apache#39394) Previous we allow invalid text as variant in PR apache#37794 and store as string type.But in encoding rowstore we CHECK the json is valid and store as jsonb binary field.In this PR we support the invalid json encoding as row store
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.
Previous we allow invalid text as variant in PR #37794 and store as string type.But in encoding rowstore we CHECK the json is valid and store as jsonb binary field.In this PR we support the invalid json encoding as row store
Proposed changes
Issue Number: close #xxx