diff --git a/src/expr/literal.rs b/src/expr/literal.rs index bce987f76..1ed1857fe 100644 --- a/src/expr/literal.rs +++ b/src/expr/literal.rs @@ -138,10 +138,7 @@ impl PyLiteral { pub fn value_interval_day_time(&self) -> PyResult> { match &self.value { ScalarValue::IntervalDayTime(Some(iv)) => { - let interval = *iv as u64; - let days = (interval >> 32) as i32; - let ms = interval as i32; - Ok(Some((days, ms))) + Ok(Some((iv.days, iv.milliseconds))) } ScalarValue::IntervalDayTime(None) => Ok(None), other => Err(unexpected_literal_value(other)),