Skip to content

Commit

Permalink
Update datafusion/physical-expr/src/intervals/utils.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Huang <[email protected]>
  • Loading branch information
berkaysynnada and Weijun-H authored Sep 5, 2023
1 parent 759e686 commit 81a8e3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/physical-expr/src/intervals/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ fn interval_mdn_to_duration_ns(mdn: &i128) -> Result<i64> {
}
}

/// Unless the number of [`ScalarValue::IntervalDayTime`] has a non-zero day field, returns
/// the milliseconds part as it will construct a [`ScalarValue::DurationMillisecond`]. Otherwise, returns an error.
/// If the day field of the [`ScalarValue::IntervalDayTime`] is zero, this function returns the milliseconds part.
/// Otherwise, it returns an error.
fn interval_dt_to_duration_ms(dt: &i64) -> Result<i64> {
let days = dt >> 32;
let milliseconds = dt & DT_MS_MASK;
Expand Down

0 comments on commit 81a8e3f

Please sign in to comment.