Skip to content

Commit

Permalink
Update mod.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
berkaysynnada committed Dec 18, 2024
1 parent c5a05d5 commit 802939a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions datafusion/common/src/scalar/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,16 @@ impl ScalarValue {
DataType::Timestamp(TimeUnit::Nanosecond, tz) => {
ScalarValue::TimestampNanosecond(Some(0), tz.clone())
}
DataType::Time32(TimeUnit::Second) => ScalarValue::Time32Second(Some(0)),
DataType::Time32(TimeUnit::Millisecond) => {
ScalarValue::Time32Millisecond(Some(0))
}
DataType::Time64(TimeUnit::Microsecond) => {
ScalarValue::Time64Microsecond(Some(0))
}
DataType::Time64(TimeUnit::Nanosecond) => {
ScalarValue::Time64Nanosecond(Some(0))
}
DataType::Interval(IntervalUnit::YearMonth) => {
ScalarValue::IntervalYearMonth(Some(0))
}
Expand Down

0 comments on commit 802939a

Please sign in to comment.