You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2023/02/10 21:41:00 UTC

[GitHub] [arrow-datafusion] comphead commented on pull request #5245: Add SQL function overload LOG(base, x) for logarithm of x to base

comphead commented on PR #5245:
URL: https://github.com/apache/arrow-datafusion/pull/5245#issuecomment-1426377741

   @stuartcarnie @alamb with `log` function we have some discrepancy with PG, its not brought up with this PR, it existed before
   
   ```
   ❯ select log(1, 64), log(0);
   +-------------------------+---------------+
   | log(Int64(1),Int64(64)) | log(Int64(0)) |
   +-------------------------+---------------+
   | inf                     | -inf          |
   +-------------------------+---------------+
   ```
   
   whereas PostgresSQL doesn't allow queries like that and fail the query


-- 
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-unsubscribe@arrow.apache.org

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