comphead opened a new issue, #6327:
URL: https://github.com/apache/arrow-datafusion/issues/6327
### Describe the bug
Extract from interval type failed in DF, but works in Postgres
### To Reproduce
```
select extract( year from interval '5' year);
Error during planning: Coercion from [Utf8, Interval(MonthDayNano)] to the
signature OneOf([Exact([Utf8, Date32]), Exact([Utf8, Date64]), Exact([Utf8,
Timestamp(Second, None)]), Exact([Utf8, Timestamp(Microsecond, None)]),
Exact([Utf8, Timestamp(Millisecond, None)]), Exact([Utf8, Timestamp(Nanosecond,
None)]), Exact([Utf8, Timestamp(Nanosecond, Some("+00:00"))])]) failed.
```
### Expected behavior
Query should work
### Additional context
Found when reviewing #6312
Possibly related to #5806
--
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]