Uh oh!
There was an error while loading. Please reload this page.
branch-3.0: [fix](function) JSON_EXTRACT_STRING should return NULL instead of the string 'null' when encountering a NULL value #51516 - #51565
Merged
Conversation
… string 'null' when encountering a NULL value (#51516) ### What problem does this PR solve? Previously, when JSON_EXTRACT_STRING encountered a NULL input value or path, it returned the string "null" instead of a proper SQL NULL value. This behavior could lead to incorrect query results and confusion in downstream processing that expects NULL to be represented as an actual null value rather than a literal string. This commit adjusts the logic to ensure that JSON_EXTRACT_STRING returns NULL in such cases, aligning with SQL semantics and improving compatibility with systems that rely on strict null-handling behavior.
Thearas
commented
Jun 7, 2025
Contributor
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Thearas
commented
Jun 7, 2025
Contributor
run buildall |
doris-robot
commented
Jun 7, 2025
TPC-H: Total hot run time: 40123 ms |
doris-robot
commented
Jun 7, 2025
TPC-DS: Total hot run time: 197062 ms |
doris-robot
commented
Jun 7, 2025
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
doris-robot
commented
Jun 7, 2025
ClickBench: Total hot run time: 31.12 s |
ContributorAuthor
PR approved by at least one committer and no changes requested. |
ContributorAuthor
PR approved by anyone and no changes requested. |
mrhhsg
commented
Jun 11, 2025
Member
run buildall |
doris-robot
commented
Jun 11, 2025
TPC-H: Total hot run time: 39706 ms |
doris-robot
commented
Jun 11, 2025
TPC-DS: Total hot run time: 196134 ms |
doris-robot
commented
Jun 11, 2025
ClickBench: Total hot run time: 29.43 s |
mrhhsg
commented
Jun 11, 2025
Member
run buildall |
hello-stephen
commented
Jun 11, 2025
Contributor
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
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.
Cherry-picked from #51516