Skip to content

[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
apache:masterfrom
boluor:fix/zh-wrong-expected-values-batch
Open

[fix](doc) zh: correct expected values in 5 function pages where docs drift from cluster output#3800
boluor wants to merge 1 commit into
apache:masterfrom
boluor:fix/zh-wrong-expected-values-batch

Conversation

@boluor
Copy link
Copy Markdown
Contributor

@boluor boluor commented May 26, 2026

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.

Page Was (ZH) Cluster on 4.1.1
`encrypt-digest-functions/murmur-hash3-64-v2.md` column header `murmur_hash3_64(...)` + hash values from an earlier implementation header is `murmur_hash3_64_v2(...)` and the values are `-3758069500696749310` and `-662943091231200135`
`string-functions/instr.md` `INSTR('ṭṛì ḍḍumai hello', 'hello')` claimed `13` `12` (the `h` is the 12th character)
`string-functions/length.md` `LENGTH('ṭṛì')` claimed `9` `8` (UTF-8 bytes: ṭ=3 + ṛ=3 + ì=2)
`string-functions/locate.md` `LOCATE('o', 'foobar', 2)` claimed `3` `2` (the `o` at position 2 satisfies "starting at or after position 2")
`string-functions/lpad.md` `LPAD('X', 7, 'HELLO')` claimed `HELLOX` (length 6) `HELLOHX` (length 7)

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

  • Each ZH snippet on its updated page is run on 4.1.1 — result matches.
  • No EN-side change.
  • Each file is a 1- or 2-line edit (or, for murmur-hash3, a header+row swap); no surrounding prose touched.

🤖 Generated with Claude Code

… 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant