tustvold commented on code in PR #5769:
URL: https://github.com/apache/arrow-rs/pull/5769#discussion_r1606569440


##########
arrow-cast/src/cast/mod.rs:
##########
@@ -275,11 +275,6 @@ pub fn can_cast_types(from_type: &DataType, to_type: 
&DataType) -> bool {
             DayTime => false,
             MonthDayNano => false,
         },
-        (Int64, Interval(to_type)) => match to_type {

Review Comment:
   Or more optimally
   
   ```
   let a: IntervalDayTimeArray = int64_array.unary(|x| IntervalDayTime::new((x 
<< 32) as i32, x as i32));
   ```



-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to