diff --git a/crates/polars-core/src/datatypes/dtype.rs b/crates/polars-core/src/datatypes/dtype.rs index bf5ad31168ab..02cf360f3bf5 100644 --- a/crates/polars-core/src/datatypes/dtype.rs +++ b/crates/polars-core/src/datatypes/dtype.rs @@ -115,11 +115,10 @@ impl PartialEq for DataType { use DataType::*; { match (self, other) { - // Don't include rev maps in comparisons #[cfg(feature = "dtype-categorical")] - (Categorical(_, ordering_l), Categorical(_, ordering_r)) => { - ordering_l == ordering_r - }, + // Don't include rev maps in comparisons + // TODO: include ordering in comparison + (Categorical(_, _ordering_l), Categorical(_, _ordering_r)) => true, #[cfg(feature = "dtype-categorical")] // None means select all Enum dtypes. This is for operation `pl.col(pl.Enum)` (Enum(None, _), Enum(_, _)) | (Enum(_, _), Enum(None, _)) => true,