Skip to content

[doc] add json_object_flatten function - #3589

Merged
eldenmoon merged 2 commits into
apache:masterfrom
csun5285:doc-json-object-flatten
Apr 29, 2026
Merged

[doc] add json_object_flatten function#3589
eldenmoon merged 2 commits into
apache:masterfrom
csun5285:doc-json-object-flatten

Conversation

@csun5285

Copy link
Copy Markdown
Contributor

Add documentation for the json_object_flatten scalar function introduced in apache/doris#62825. Covers EN/ZH for both dev and version-4.x, and registers the page in both sidebars.

Versions

  • dev
  • 4.x
  • 3.x
  • 2.1 or older (not covered by version/language sync gate)

Languages

  • Chinese
  • English
  • Japanese candidate translation needed

Docs Checklist

  • Checked by AI
  • Test Cases Built
  • Updated required version and language counterparts, or explained why not
  • If only one language changed, confirmed whether source/translation counterparts need sync

Add documentation for the json_object_flatten scalar function introduced
in apache/doris#62825. Covers EN/ZH for both dev and version-4.x, and
registers the page in both sidebars.
eldenmoon pushed a commit to apache/doris that referenced this pull request Apr 27, 2026
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 Bot pushed a commit to apache/doris that referenced this pull request Apr 27, 2026
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
@eldenmoon
eldenmoon merged commit 8908f21 into apache:master Apr 29, 2026
2 checks passed
zhaorongsheng pushed a commit to zhaorongsheng/doris that referenced this pull request Jun 4, 2026
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
csun5285 added a commit that referenced this pull request Jun 6, 2026
The json_object_flatten function docs were added in #3589 but were
accidentally deleted by the "online new home page" refactor in #3660,
which replaced the docs tree with the docs-next tree that predated the
function. As a result the page is missing from the live site.

Restore the EN/ZH pages for both current(dev) and version-4.x from the
original #3589 commit (8908f21) and re-register them in sidebars.ts
and version-4.x-sidebars.json.

## Versions 

- [x] dev
- [x] 4.x
- [ ] 3.x
- [ ] 2.1 or older (not covered by version/language sync gate)

## Languages

- [x] Chinese
- [x] English
- [ ] Japanese candidate translation needed

## Docs Checklist

- [ ] Checked by AI
- [ ] Test Cases Built
- [ ] Updated required version and language counterparts, or explained
why not
- [ ] If only one language changed, confirmed whether source/translation
counterparts need sync

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

2 participants