Skip to content

Commit

Permalink
more missing feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
orlp committed Sep 6, 2024
1 parent ee54ff5 commit 65abaf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/polars-core/src/datatypes/any_value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ impl AnyValue<'static> {
AnyValue::UInt8(0).cast(dtype),
)
},
#[cfg(feature = "dtype-duration")]
DataType::Duration(unit) => AnyValue::Duration(0, *unit),
#[cfg(feature="dtype-decimal")]
DataType::Decimal(_p, s) => {
Expand Down Expand Up @@ -841,6 +842,7 @@ impl<'a> AnyValue<'a> {
(UInt64(l), UInt64(r)) => UInt64(l + r),
(Float32(l), Float32(r)) => Float32(l + r),
(Float64(l), Float64(r)) => Float64(l + r),
#[cfg(feature = "dtype-duration")]
(Duration(l, lu), Duration(r, ru)) => {
if lu != ru {
unimplemented!("adding durations with different units is not supported here");
Expand Down

0 comments on commit 65abaf9

Please sign in to comment.