Omega359 commented on issue #14738:
URL: https://github.com/apache/datafusion/issues/14738#issuecomment-2666570269
> It seems like even without integer overflows, the overall logic is wrong:
>
> ```
> SELECT date_part('seconds', interval '1 hour')
> -- returns 3600, but the result should be 0
> ```
Hmm. I think this may be a separate issue as indeed it doesn't follow the
typical pattern for that function where
```sql
SELECT date_part('seconds', interval '1 hour 5 second');
```
should return 5 (the seconds element in the interval, not the overall
seconds the interval covers)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]