[fix](doc) string-functions en: backport corner-case examples that exist on zh (6 pages)#3815
Open
boluor wants to merge 1 commit into
Open
Conversation
…ist on zh
For 6 string-functions doc pages the EN side has fewer examples than
the ZH side. This commit ports the ZH-only corner cases over to EN so
both pages cover the same set of behaviors. Every added example was
re-run against an Apache Doris 4.1.1 cluster and the result block is
the verbatim mysql client output.
- hex.md (+4 examples): whitespace bytes (' ', \t, \n), UTF-8
multi-byte input, negative integer two's-complement, mixed
alphanumeric.
- initcap.md (+6 examples): empty string, non-alphanumeric
separators, UTF-8 words, common name capitalization, sentence
capitalization, multiple-space and adjacent-punctuation handling.
- lcase.md (+4 examples): empty string, already-lowercase / numeric
passthrough, non-alphabetic passthrough, UTF-8 case folding.
- ltrim.md (+6 examples): empty inputs, multi-char-substring strip,
full match, UTF-8 substring strip, numeric strip, punctuation
strip. (Skipped one ZH example that claimed LTRIM strips tabs and
newlines — it actually doesn't on 4.x; LTRIM 1-arg only strips
ASCII spaces.)
- replace.md (+4 examples): empty-string edge cases for all three
args, case-sensitivity, no-match unchanged, overlap-free repeats.
- xpath-string.md (+4 examples) — also renamed the existing
mislabeled example 5 "Handling CDATA and comments" to "NULL input"
since its SQL was a pure NULL test; added the actual CDATA,
comment-stripping, no-match, and malformed-XML examples.
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
For six string-functions doc pages, the EN side has fewer examples than the ZH side. This PR ports the ZH-only corner-case examples to EN so both pages cover the same set of behaviors.
Notes
Verification
Every added example was run against a single-node Apache Doris 4.1.1 cluster; result blocks are the verbatim mysql client output (including column-width padding).
Test plan
🤖 Generated with Claude Code