-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Inconsistent behavior for Interval type with document #9525
Comments
take |
I don't think this is related to |
Yeah, I also think so. |
I don't understand this question -- I think the idea is that IntervalYearMonth is the most general interval type that can support most non fixed width intervals (e.g. 1 month vs 28, 29, 30, 31 days) |
Describe the bug
When I take #9524, I found the behavior of the function is inconsistent with the actual CLI output.
Docs:
https://github.com/apache/arrow-datafusion/blob/eebdbe8be61ba1944b7a7e14d3edeed0259a7d74/docs/source/user-guide/sql/data_types.md?plain=1#L32-L38
Output from local CLI:
DataFusion CLI v35.0.0
❯ select arrow_typeof(interval '1 month');
+---------------------------------------------------------------------+
| arrow_typeof(IntervalMonthDayNano("79228162514264337593543950336")) |
+---------------------------------------------------------------------+
| Interval(MonthDayNano) |
+---------------------------------------------------------------------+
1 row in set. Query took 0.001 seconds.
To Reproduce
Run the same sql
Expected behavior
No response
Additional context
I'm researching whether it's because the docs is outdated or there's some issue related to Interval type
The text was updated successfully, but these errors were encountered: