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

   ### Problem
   
   The `IF` function page (version-3.x and version-2.1, EN + ZH) shows:
   
   ```sql
   SELECT user_id, IF(user_id = 1, 'true', 'false') AS test_if FROM test;
   ```
   
   but the page never defines `test`, so anyone copy-pasting the example hits 
`table does not exist`.
   
   ### Fix
   
   Add a visible `CREATE TABLE` + `INSERT` block before the example (matching 
the "prepare data" style already used on the 4.x copy of this page), so the 
example is self-contained and reproducible. Renders as an ordinary code block; 
no change to the example SQL or its expected output.
   
   ### Verification
   
   Ran the modified pages end-to-end on fresh live clusters — Doris **3.1.4** 
(for version-3.x) and **2.1.11** (for version-2.1). The example reproduces the 
documented output exactly, cell for cell.
   
   Files: version-3.x + version-2.1, EN + ZH (4 files).
   
   🤖 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