[fix](doc) json-type.md: replace stale jsonb_type headers, fix zh fences, mirror examples#3796
Open
boluor wants to merge 1 commit into
Open
Conversation
…ag zh result fences as text; mirror examples
Three issues, fixed on both sides:
1. EN result blocks for the first two examples show the column header
as `jsonb_type(cast('...' as JSON), '$.name')`. The cluster actually
returns the SQL verbatim, preserving its case — `JSON_TYPE('...',
'$.name')`. `jsonb_type` was the internal name in the early JSONB
era; current versions show `JSON_TYPE`. Replaced the headers with
what the cluster prints today on Apache Doris 4.1.1.
2. ZH result blocks were fenced with bare ```` ``` ```` instead of
```` ```text ````, so docusaurus did not get a language hint.
Tagged them all as `text`.
3. Each side had two type-coverage examples the other didn't (EN had
string + int, ZH had double + bool). Mirrored them so both pages
now cover the four primitive types in the same order.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 free
to 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.
Summary
Doc page (4.x): `scalar-functions/json-functions/json-type.md` (EN + ZH).
Three problems addressed:
EN — stale internal column header. Result blocks for the first two examples show the column header as `jsonb_type(cast('{"name":...}' as JSON), '$.name')`. On Apache Doris 4.1.1 the cluster returns the column header as the SQL itself, preserving case — `JSON_TYPE('{"name":...}', '$.name')`. `jsonb_type` was the internal name in the early JSONB era; current versions print `JSON_TYPE`. Replaced with what the cluster prints today.
ZH — bare code fences on result blocks. All six result blocks were fenced with ```````` instead of ````text````, so docusaurus had no language hint and rendered the ASCII grid with no syntax-highlighting tag.
Each side had two type-coverage examples the other didn't. EN had `string` and `int`; ZH had `double` and `bool`. Mirrored them so both pages now cover all four primitive types in the same order, followed by the same NULL / missing-path / invalid-path examples.
Verification
All 8 examples were run against a single-node Apache Doris 4.1.1 cluster — the result blocks in this PR are the verbatim mysql client output.
Test plan
🤖 Generated with Claude Code