jonahgao opened a new pull request, #11571:
URL: https://github.com/apache/datafusion/pull/11571

   ## Which issue does this PR close?
   
   <!--
   We generally require a GitHub issue to be filed for all bug fixes and 
enhancements and this helps us generate change logs for our releases. You can 
link an issue to this PR using the GitHub syntax. For example `Closes #123` 
indicates that this PR will close issue #123.
   -->
   
   Closes #11549.
   
   ## Rationale for this change
   1. The current implementation assumes `log` has two parameters, but this 
does not hold for `log(100)`, which is equivalent to `log(10, 100)`. This will 
cause panic due to index out of bounds.
   2. It mistakenly treats the second parameter as `base`, causing incorrect 
ordering results.
   
   Ref: https://datafusion.apache.org/user-guide/sql/scalar_functions.html#log
   
   
   ## What changes are included in this PR?
   
   
   ## Are these changes tested?
   Yes
   
   ## Are there any user-facing changes?
   No


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to