You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "shinzoxD (via GitHub)" <gi...@apache.org> on 2026/08/15 19:44:05 UTC
Re: [I] PostgreSQL compatibility: `log(0.0::float8)` should error, not return `-inf` [datafusion]
shinzoxD commented on issue #22261:
URL: https://github.com/apache/datafusion/issues/22261#issuecomment-5303925284
I'm working on this.
Context: I first looked at #22263 (`SIMILAR TO` `%` wildcard), but that already has approved PR #23188, and the preferred fallbacks #22269 / #23258 are assigned. This sibling from the #22247 split is still open with no open PR.
I'll keep the change tightly scoped to the issue: `log(0.0::float8)` (and other zero *values*) become the PostgreSQL domain error `cannot take logarithm of zero`. I will not change `log(1, 64)` / zero-base behavior, or the existing `log` simplifications, so this stays out of the scope-creep that closed #22564.
@xiedeyantu I saw you previously took this and opened #22564. Please let me know if you are still working on a follow-up and I'll step back.
--
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@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org