alamb opened a new issue, #5802:
URL: https://github.com/apache/arrow-datafusion/issues/5802
### Describe the bug
I can not use `interval ..` syntax in SQL `VALUES` clauses
### To Reproduce
```sql
create table t (i interval) as values (interval '5 days 3 nanoseconds');
```
Results in
```DataFusion error: This feature is not implemented: Unsupported value
Interval \{ value: Value\(SingleQuotedString\("5 days 3 nanoseconds"\)\),
leading_field: None, leading_precision: None, last_field: None,
fractional_seconds_precision: None \} in a values list expression
```
### Expected behavior
I expect it to work like
```sql
❯ create table t (i interval) as values ('5 days 3 nanoseconds'::interval);
0 rows in set. Query took 0.002 seconds.
❯ show columns in t;
+---------------+--------------+------------+-------------+------------------------+-------------+
| table_catalog | table_schema | table_name | column_name | data_type
| is_nullable |
+---------------+--------------+------------+-------------+------------------------+-------------+
| datafusion | public | t | i |
Interval(MonthDayNano) | YES |
+---------------+--------------+------------+-------------+------------------------+-------------+
### Additional context
_No response_
--
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]