-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Error when adding Date32 and Int64 #12342
Comments
That is an odd thing for pg to support because the unit for the int is implied as it could just as well be months or years. |
I cannot find the standard right away, but for binary ops with Date and numeric, the numeric is supposed to be number of days |
Using intervals, both of the following work: select to_date('1970-01-01') + interval '5' day; Do we want to support both cases for Date32 and Int64 as well? select to_date('1970-01-01', 'yyyy-mm-dd') + 5; How about minus? select to_date('1970-01-01', 'yyyy-mm-dd') - 5; |
take |
I put up a PR, but it's not perfect as I describe in its summary. Would love to get feedback and suggestions from the experts! |
Describe the bug
DataFusion 41
The same query runs ok in Postgres
Workaround
To Reproduce
Expected behavior
Query should work
Additional context
No response
The text was updated successfully, but these errors were encountered: