[fix](doc) zh: correct expected values in 5 function pages where docs drift from cluster output#3800
Open
boluor wants to merge 1 commit into
Open
[fix](doc) zh: correct expected values in 5 function pages where docs drift from cluster output#3800boluor wants to merge 1 commit into
boluor wants to merge 1 commit into
Conversation
… drift from cluster output
Five separate ZH-only doc pages have a result block whose values
disagree with what Apache Doris 4.1.1 actually returns. In every
case the EN page already shows the correct cluster output.
- encrypt-digest-functions/murmur-hash3-64-v2.md: the result table
used the old `murmur_hash3_64` (no `_v2`) as column headers and
the hash values for the (single-arg and two-arg) calls came from
some earlier implementation. Replace with the real 4.1.1 output:
-3758069500696749310 and -662943091231200135.
- string-functions/instr.md: INSTR('ṭṛì ḍḍumai hello', 'hello')
returns 12 (the 'h' is the 12th character), not 13.
- string-functions/length.md: LENGTH('ṭṛì') is 8 bytes (ṭ=3, ṛ=3,
ì=2 in UTF-8), not 9.
- string-functions/locate.md: LOCATE('o', 'foobar', 2) returns 2
(the 'o' at position 2 satisfies "starting at or after position 2"),
not 3.
- string-functions/lpad.md: LPAD('X', 7, 'HELLO') = 'HELLOHX'
(length 7), not 'HELLOX' (length 6).
Verified each by running the snippet against a single-node Apache
Doris 4.1.1 cluster — every result block in this commit is the
verbatim mysql client output.
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
Five ZH-only doc pages on `version-4.x` have a result block whose values disagree with what a single-node Apache Doris 4.1.1 cluster actually returns. In every case the EN counterpart already shows the correct value, so this PR is a pure ZH-side correction; the EN pages are untouched.
Verification
Every snippet was run against a single-node Apache Doris 4.1.1 cluster — each updated result block is the verbatim mysql client output.
Test plan
🤖 Generated with Claude Code