boluor opened a new pull request, #3796:
URL: https://github.com/apache/doris-website/pull/3796
## Summary
Doc page (4.x): \`scalar-functions/json-functions/json-type.md\` (EN + ZH).
Three problems addressed:
1. **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.
2. **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.
3. **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
- [x] Run each of the 8 SQL examples on a 4.1.1 cluster — each result block
matches.
- [x] EN and ZH now have the same 8 examples in the same order.
- [x] All result blocks tagged \`text\`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]