alamb commented on issue #5651:
URL:
https://github.com/apache/arrow-datafusion/issues/5651#issuecomment-1490426450
After upgrade to arrow 36:
```sql
select arrow_cast('1 second', 'Interval(YearMonth)');DataFusion CLI v21.0.0
❯ select arrow_cast('1 second', 'Interval(YearMonth)');
Arrow error: Cast error: Cannot cast 1 second to IntervalYearMonth. Only
year and month fields are allowed.
❯ select arrow_cast('1 month', 'Interval(DayTime)');
+--------------------------------------------------+
| Utf8("1 month") |
+--------------------------------------------------+
| 0 years 0 mons 30 days 0 hours 0 mins 0.000 secs |
+--------------------------------------------------+
```
Here is a small PR that adds basic support for the SQL interval type:
https://github.com/apache/arrow-datafusion/pull/5792
--
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]