This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new a234953b33f [fix](doc) url-decode.md: merge en/zh examples, fix
divider width and wrong fence tag (#3792)
a234953b33f is described below
commit a234953b33f42a16ef4aea62f006adad44ff8c75
Author: boluor <[email protected]>
AuthorDate: Wed May 27 19:17:21 2026 -0700
[fix](doc) url-decode.md: merge en/zh examples, fix divider width and wrong
fence tag (#3792)
## Summary
Doc page (4.x): \`scalar-functions/string-functions/url-decode.md\` (EN
+ ZH).
Each side had one example the other didn't, plus a small bug:
| Side | Had | Bug |
|------|-----|-----|
| EN | long-URL example | divider line is 48 chars but the column-name
row is 111 chars, so the result table renders ragged on the docs site |
| ZH | short \`Doris+Q%26A\` example showing \`+\` β space and \`%26\` β
\`&\` decoding | result block uses \`\`\`\`sql\`\`\` instead of
\`\`\`\`text\`\`\`, so docusaurus syntax-highlights the ASCII grid as
SQL |
This PR brings both pages to the same structure: two examples (long URL
+ form-encoded short string), each with a one-line intro, correct fence
tags, and divider lines that match the actual mysql client output
byte-for-byte.
## Verification
Both SQL examples run against a single-node Apache Doris 4.1.1 cluster;
the result blocks in the PR are the verbatim CLI output.
## Test plan
- [x] Run both examples on the cluster β match documented results.
- [x] EN and ZH now mirror each other structurally.
- [x] Result blocks are tagged \`text\` so docusaurus does not
syntax-highlight them as SQL.
π€ Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
---
.../string-functions/url-decode.md | 18 +++++++++++++++--
.../string-functions/url-decode.md | 23 +++++++++++++++++++---
2 files changed, 36 insertions(+), 5 deletions(-)
diff --git
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
index 3dc32dcfaac..94c88023c05 100644
---
a/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
+++
b/i18n/zh-CN/docusaurus-plugin-content-docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
@@ -27,16 +27,30 @@ URL_DECODE( <str> )
## η€ΊδΎ
+θ§£η ηΎεε·ηΌη η URL ββ `%3A` β `:`οΌ`%2F` β `/`γ
+
```sql
+select
url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions');
+```
-select URL_DECODE('Doris+Q%26A');
+```text
++-------------------------------------------------------------------------------------------------------------+
+|
url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions')
|
++-------------------------------------------------------------------------------------------------------------+
+|
https://doris.apache.org/zh-CN/docs/sql-manual/sql-functions/string-functions
|
++-------------------------------------------------------------------------------------------------------------+
```
+θ§£η `application/x-www-form-urlencoded` ι£ζ Όηε符串 ββ `+` β η©Ίζ ΌοΌ`%26` β `&`γ
+
```sql
+select url_decode('Doris+Q%26A');
+```
+
+```text
+---------------------------+
| url_decode('Doris+Q%26A') |
+---------------------------+
| Doris Q&A |
+---------------------------+
-
```
diff --git
a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
index 9de9c7a4e4e..b7ea9cc1b7d 100644
---
a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
+++
b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/string-functions/url-decode.md
@@ -27,13 +27,30 @@ The decoded value
## Example
+Decoding a percent-encoded URL β `%3A` β `:`, `%2F` β `/`.
+
```sql
select
url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions');
```
+
```text
-+------------------------------------------------+
++-------------------------------------------------------------------------------------------------------------+
|
url_decode('https%3A%2F%2Fdoris.apache.org%2Fzh-CN%2Fdocs%2Fsql-manual%2Fsql-functions%2Fstring-functions')
|
-+------------------------------------------------+
++-------------------------------------------------------------------------------------------------------------+
|
https://doris.apache.org/zh-CN/docs/sql-manual/sql-functions/string-functions
|
-+------------------------------------------------+
++-------------------------------------------------------------------------------------------------------------+
+```
+
+Decoding a `application/x-www-form-urlencoded`-style string β `+` β space,
`%26` β `&`.
+
+```sql
+select url_decode('Doris+Q%26A');
+```
+
+```text
++---------------------------+
+| url_decode('Doris+Q%26A') |
++---------------------------+
+| Doris Q&A |
++---------------------------+
```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]