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

   ## Summary
   
   Doc page (4.x): \`scalar-functions/string-functions/trim.md\` (EN).
   
   The 2-arg trim example claimed:
   
   \`\`\`sql
   SELECT trim('ababccaab', 'ab') str;
   \`\`\`
   \`\`\`
   | str     |
   | ababcca |
   \`\`\`
   
   On Apache Doris 4.1.1 the cluster returns \`cca\`, not \`ababcca\`. 
\`trim(<str>, <rhs>)\` strips \`<rhs>\` from BOTH ends and repeats until 
neither end starts/ends with \`<rhs>\`:
   
   \`\`\`
   'ababccaab' -> peel 'ab' from front: 'abccaab' -> peel 'ab' again: 'ccaab' 
(front stops)
   'ccaab'     -> peel 'ab' from back: 'cca' (back stops)
   final: 'cca'
   \`\`\`
   
   The ZH counterpart already shows \`cca\`. Update EN's expected output and 
add a one-line intro that calls out the \"both ends, repeatedly\" semantics so 
the result no longer looks surprising.
   
   ## Verification
   
   \`\`\`
   mysql> SELECT trim('ababccaab', 'ab') str;
   +------+
   | str  |
   +------+
   | cca  |
   +------+
   \`\`\`
   
   ## Test plan
   
   - [x] Run on a 4.1.1 cluster — returns \`cca\`.
   - [x] Result-table widths updated to fit the shorter value.
   - [x] No other change.
   
   🤖 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