Skip to content

Commit e1c4ad9

Browse files
update value_interval_daytime
Ref apache/arrow-rs#5769
1 parent 2e17661 commit e1c4ad9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/expr/literal.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,7 @@ impl PyLiteral {
138138
pub fn value_interval_day_time(&self) -> PyResult<Option<(i32, i32)>> {
139139
match &self.value {
140140
ScalarValue::IntervalDayTime(Some(iv)) => {
141-
let interval = *iv as u64;
142-
let days = (interval >> 32) as i32;
143-
let ms = interval as i32;
144-
Ok(Some((days, ms)))
141+
Ok(Some((iv.days, iv.milliseconds)))
145142
}
146143
ScalarValue::IntervalDayTime(None) => Ok(None),
147144
other => Err(unexpected_literal_value(other)),

0 commit comments

Comments
 (0)