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));
   ```
   
   Although the exact specifics will depend on if they're wanting to emulate 
the old (incorrect) byte order or the new :sweat_smile: 
   
   This ambiguity is why I removed it



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