diff --git a/crates/polars-core/src/utils/mod.rs b/crates/polars-core/src/utils/mod.rs index 43a50dbf592c..90e23998f07c 100644 --- a/crates/polars-core/src/utils/mod.rs +++ b/crates/polars-core/src/utils/mod.rs @@ -319,11 +319,15 @@ macro_rules! with_match_physical_integer_type {( macro_rules! __with_ty__ {( $_ $T:ident ) => ( $($body)* )} use $crate::datatypes::DataType::*; match $dtype { + #[cfg(feature = "dtype-i8")] Int8 => __with_ty__! { i8 }, + #[cfg(feature = "dtype-i16")] Int16 => __with_ty__! { i16 }, Int32 => __with_ty__! { i32 }, Int64 => __with_ty__! { i64 }, + #[cfg(feature = "dtype-u8")] UInt8 => __with_ty__! { u8 }, + #[cfg(feature = "dtype-u16")] UInt16 => __with_ty__! { u16 }, UInt32 => __with_ty__! { u32 }, UInt64 => __with_ty__! { u64 },