You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "alamb (via GitHub)" <gi...@apache.org> on 2026/03/03 16:22:31 UTC
Re: [I] date_part returning wrong results due to overflows [datafusion]
alamb commented on issue #14738:
URL: https://github.com/apache/datafusion/issues/14738#issuecomment-3992137522
Appears to still be a problem
```sql
andrewlamb@Andrews-MacBook-Pro-3:~/Software/arrow-rs$ datafusion-cli
DataFusion CLI v52.1.0
> SELECT date_part('microsecond', timestamp '1970-01-01T00:40:00' - timestamp '1970-01-01T00:00:00');
+------------------------------------------------------------------------------------------+
| date_part(Utf8("microsecond"),Utf8("1970-01-01T00:40:00") - Utf8("1970-01-01T00:00:00")) |
+------------------------------------------------------------------------------------------+
| -1894967296 |
+------------------------------------------------------------------------------------------+
1 row(s) fetched.
Elapsed 0.040 seconds.
```
--
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