You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "boluor (via GitHub)" <gi...@apache.org> on 2026/05/26 10:58:26 UTC
[PR] [fix](doc) json-type.md: replace stale jsonb_type headers, fix zh fences, mirror examples [doris-website]
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](doc) json-type.md: replace stale jsonb_type headers, fix zh fences, mirror examples [doris-website]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman closed pull request #3796: [fix](doc) json-type.md: replace stale jsonb_type headers, fix zh fences, mirror examples
URL: https://github.com/apache/doris-website/pull/3796
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
Re: [PR] [fix](doc) json-type.md: replace stale jsonb_type headers, fix zh fences, mirror examples [doris-website]
Posted by "morningman (via GitHub)" <gi...@apache.org>.
morningman merged PR #3796:
URL: https://github.com/apache/doris-website/pull/3796
--
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: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org