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

   ## Summary
   
   Doc page (4.x): \`scalar-functions/numeric-functions/log10.md\` (EN + ZH).
   
   Both pages claimed in their Return Value section, and the EN page 
additionally claimed in its example block, that \`log10(NaN)\` returns \`NaN\`. 
On Apache Doris 4.1.1 the cluster actually returns \`NULL\`. The same applies 
to \`log10(0)\` and \`log10(<negative>)\`.
   
   Update:
   - EN: change the example's expected output \`NaN\` → \`NULL\`.
   - EN + ZH: rewrite the return-value bullet to cover NaN, zero, and negative 
inputs (all return NULL).
   
   ## Verification
   
   \`\`\`
   mysql> select log10(cast('nan' as double));     -- NULL
   mysql> select log10(0.0);                       -- NULL
   mysql> select log10(-1);                        -- NULL
   mysql> select cast('nan' as double);            -- NaN  (the cast itself 
preserves NaN; log10 consumes it and returns NULL)
   \`\`\`
   
   ## Test plan
   
   - [x] Run each affected SELECT on a 4.1.1 cluster — all return NULL.
   - [x] Cast-only check shows NaN is preserved as a double, but log10 returns 
NULL.
   - [x] No SQL or example removed.
   
   🤖 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