xinrong-databricks opened a new pull request #33497:
URL: https://github.com/apache/spark/pull/33497


   ### What changes were proposed in this pull request?
   Fix equality comparison of unordered Categoricals.
   
   ### Why are the changes needed?
   Codes of a Categorical Series are used for Series equality comparison. 
However, that doesn't apply to unordered Categoricals, where the same value can 
have different codes in two same categories in a different order.
   
   So we should map codes to value respectively and then compare the equality 
of value.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes.
   
   
   ### How was this patch tested?
   Unit tests.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to