diff --git a/crates/polars-core/src/chunked_array/ops/row_encode.rs b/crates/polars-core/src/chunked_array/ops/row_encode.rs index cfc5ce717412..12a3014fd525 100644 --- a/crates/polars-core/src/chunked_array/ops/row_encode.rs +++ b/crates/polars-core/src/chunked_array/ops/row_encode.rs @@ -57,14 +57,8 @@ pub(crate) fn convert_series_for_row_encoding(s: &Series) -> PolarsResult s.to_physical_repr().into_owned(), - #[cfg(feature = "dtype-datetime")] - D::Datetime(_, _) => s.to_physical_repr().into_owned(), - #[cfg(feature = "dtype-duration")] - D::Duration(_) => s.to_physical_repr().into_owned(), - #[cfg(feature = "dtype-time")] - D::Time => s.to_physical_repr().into_owned(), + + D::Date | D::Datetime(_, _) | D::Duration(_) | D::Time => s.to_physical_repr().into_owned(), #[cfg(feature = "object")] D::Object(_, _) => {