-
Notifications
You must be signed in to change notification settings - Fork 597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: a function to extract units in interval #12624
Comments
The subtraction returns an
There are several caveats though, given the complexity of date/time:
|
cc. @matanper |
@xiangjinwu Thanks for the reply. |
date_diff
function
Would this be a case suitable to be solved by SQL UDF (#10151)? |
Is there any reference from other databases/systems? |
Hi, @matanper. This is our decision for now. Please keep us informed if you face any further issues. We're open to revisiting this decision if needed. |
Currently:
We want:
Intervals containing year/month should report an error until the desired behavior is clear. In PostgreSQL:
interval '1 year' = interval '31104000 seconds'
ist
extract(epoch from interval '1 year')
is31557600
Original request:
Originally posted by @matanper in #8849 (comment)
The text was updated successfully, but these errors were encountered: