[fix](doc) rtrim.md zh: rewrite the tab/newline example so the result table stays single-row#3805
Open
boluor wants to merge 1 commit into
Open
[fix](doc) rtrim.md zh: rewrite the tab/newline example so the result table stays single-row#3805boluor wants to merge 1 commit into
boluor wants to merge 1 commit into
Conversation
… block stays a single row
The previous example showed `RTRIM('hello world \t\n ')` whose result
contains an actual newline character. Markdown then renders that
result as two visual lines inside the result cell:
| hello world
|
which breaks the ASCII grid and makes the result hard to read. Rewrite
the same demonstration using LENGTH() so the result is two integers
on a single row, and add a one-sentence intro that calls out the
teaching point ("RTRIM only strips ASCII spaces, not tabs or
newlines"). The original 16-vs-15 numbers come from running on a
single-node Apache Doris 4.1.1 cluster.
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/string-functions/rtrim.md` (ZH).
The third example showed:
```sql
SELECT RTRIM('hello world \t\n ');
```
Whose result is the input minus the trailing space — but the embedded `\t\n` is a real tab and newline, so the result block rendered as two visual rows inside the cell and broke the ASCII grid:
```
| hello world
|
```
This rewrites the same teaching point using `LENGTH()` so the cluster returns two integers (16 / 15) on a single line, and adds a one-sentence prose intro that calls out the lesson: RTRIM only strips ASCII spaces, not tabs or newlines.
Verification
Both LENGTH values confirmed on a single-node Apache Doris 4.1.1 cluster.
Test plan
🤖 Generated with Claude Code