boluor opened a new pull request, #3860:
URL: https://github.com/apache/doris-website/pull/3860

   ## Background
   
   A native **both-language** re-check — examples that fail identically in EN 
and ZH, so a cross-language diff never surfaces them — found five 
string-function pages whose documented example result does not match the 
server. All are deterministic and verified on a fresh **Doris 4.1.1** cluster. 
Each is wrong in **both EN and ZH**.
   
   ## Bugs fixed
   
   | Page | Documented | Correct (cluster) | Why |
   |---|---|---|---|
   | `ends-with.md` | `ENDS_WITH('testing','test')` = `1` | `0` | "testing" 
does not end with "test" |
   | `reverse.md` | `irànnaumuḍḍ` | `irànnamuḍḍ` | spurious extra `u`; actual 
reverse of `ḍḍumannàri` |
   | `mask-last-n.md` | `Hello你好nnn` (header `Hello你好123`) | `Helloṭṛnnn` | 
result block was for a different input than the example SQL 
`mask_last_n('Helloṭṛ123', 9)` |
   | `position.md` | `13` | `12` | `'hello'` starts at character position 12 of 
`'ṭṛì ḍḍumai hello'` |
   | `mask.md` | `Xxxx999` | `Axxx999` | the example demonstrates a custom 
upper-case replacement `'ABC'`, so `T → A`, not the default `X` |
   
   ## Cluster verification (Doris 4.1.1)
   
   ```
   ENDS_WITH('test','test'), ENDS_WITH('testing','test')   -> 1 , 0
   REVERSE('ṭṛì ḍḍumai'), REVERSE('ḍḍumannàri')            -> iamuḍḍ ìṛṭ , 
irànnamuḍḍ
   mask_last_n('Helloṭṛ123', 9)                            -> Helloṭṛnnn
   POSITION('ḍḍumai' IN 'ṭṛì ḍḍumai hello'),
       POSITION('hello','ṭṛì ḍḍumai hello',8)              -> 5 , 12
   mask('Test123','ABC','xyz','999')                       -> Axxx999
   ```
   
   The same fixes apply to `dev` (identical wrong values); a follow-up backport 
PR will cover dev after verification on a master build.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to