Skip to content

branch-4.1: [feature](jsonb) add json_object_flatten scalar function #62825 - #62873

Merged
yiguolei merged 1 commit into
branch-4.1from
auto-pick-62825-branch-4.1
Apr 29, 2026
Merged

branch-4.1: [feature](jsonb) add json_object_flatten scalar function #62825#62873
yiguolei merged 1 commit into
branch-4.1from
auto-pick-62825-branch-4.1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Cherry-picked from #62825

Introduce `json_object_flatten(JSONB) -> JSONB`. Turn a nested JSONB
object into a single-level JSONB whose keys are the dot-joined paths to
each leaf, mirroring NiFi `FlattenJson` *keep-arrays* semantics:

```
{"a":{"b":2}}        -> {"a.b":2}
{"a":{"b":{"c":3}}}  -> {"a.b.c":3}
{"a":[{"b":1}]}      -> {"a":[{"b":1}]}
```
apache/doris-website#3589
@github-actions
github-actions Bot requested a review from yiguolei as a code owner April 27, 2026 11:18
@Thearas

Thearas commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@dataroaring dataroaring reopened this Apr 27, 2026
@Thearas

Thearas commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 8.33% (1/12) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 100.00% (31/31) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 73.41% (27027/36816)
Line Coverage 56.93% (291870/512695)
Region Coverage 54.50% (244146/448012)
Branch Coverage 56.07% (105803/188699)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 91.67% (11/12) 🎉
Increment coverage report
Complete coverage report

@yiguolei

Copy link
Copy Markdown
Contributor

skip buildall

@yiguolei
yiguolei merged commit 43899b6 into branch-4.1 Apr 29, 2026
32 of 34 checks passed
@morningman
morningman deleted the auto-pick-62825-branch-4.1 branch July 8, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants