caicancai commented on issue #9302:
URL:
https://github.com/apache/arrow-datafusion/issues/9302#issuecomment-1959505839
> Datafusion does actually support this it seems:
>
> ```sql
> ❯ select log(arrow_cast('+Infinity', 'Float32'));
> +------------------------+
> | log(Utf8("+Infinity")) |
> +------------------------+
> | inf |
> +------------------------+
> 1 row in set. Query took 0.002 seconds.
>
> ❯ select log(arrow_cast('-Infinity', 'Float32'));
> +------------------------+
> | log(Utf8("-Infinity")) |
> +------------------------+
> | NaN |
> +------------------------+
> 1 row in set. Query took 0.002 seconds.
>
> ❯
> ```
>
> Could you elaborate on which math functions are throwing error in cases of
infinity input?
Thank you for your reply. It seems that you need to do some cast conversion.
Can't you log2('-Infinity') directly?
--
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]