-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Support INTERVAL SQL Type
#5792
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
Conversation
80b25a9 to
06d38fa
Compare
| arrow_typeof(interval '5 months'), | ||
| arrow_typeof(interval '5 days 3 nanoseconds') | ||
| ---- | ||
| Interval(YearMonth) Interval(MonthDayNano) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fact that this is Interval YearMonth is an artifact -- I think interval .. syntax should always be the same type. I will file a ticket to that effect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
|
||
|
|
||
| # Create tables with interval values | ||
| # (TODO file ticket) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will file a ticket. Thank you for the review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which issue does this PR close?
Closes #5651
Rationale for this change
See #5651 (basically I want to be able to interact with intervals like normal). Also related to #5764 from @berkaysynnada
What changes are included in this PR?
INTERVALSQL -->DataType::Interval(MonthDayNano)arrow typeAre these changes tested?
Yes
Are there any user-facing changes?
Yes (you can now do
SELECT '1 day'::interval) and it works!