waitingkuo commented on issue #5651:
URL: 
https://github.com/apache/arrow-datafusion/issues/5651#issuecomment-1482241768

   hi @alamb this is great, `arrow_cast` to specific `IntervalUnit` is quite 
helpful.
   
   I'd like to know when the source doesn't feed into the interval , e.g.
   ```bash
   select arrow_cast('1 second', 'Interval(YearMonth)');
   ```
   do we just simply return a `0` or we should raise some warning or even err?
   
   or when there're some ambiguities
   ```bash
   select arrow_cast('1 month', 'Interval(DayTime)');
   ```
   do we return `30 days` or we should raise an ambiguity error?


-- 
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]

Reply via email to