Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 19, 2024
1 parent 9b25693 commit 3b1cd75
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/polars-core/src/datatypes/dtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3b1cd75

Please sign in to comment.