alamb commented on issue #5651:
URL:
https://github.com/apache/arrow-datafusion/issues/5651#issuecomment-1485852781
```
I'd like to know when the source doesn't feed into the interval , e.g.
select arrow_cast('1 second', 'Interval(YearMonth)');
do we just simply return a 0 or we should raise some warning or even err?
```
I think the best way to think of `arrow_cast` is as a way to invoke the
arrow `cast` kernel
So in your examples
```sql
select arrow_cast('1 second', 'Interval(YearMonth)');
```
That would invoke `cast(StringArray, IntervalYearMonthArray)`
```sql
select arrow_cast('1 month', 'Interval(DayTime)');
```
Basically this should be whatever the arrow kernel does (probably throw an
ambiguity error, but I am not sure)
--
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]