ueshin opened a new pull request, #54412:
URL: https://github.com/apache/spark/pull/54412

   ### What changes were proposed in this pull request?
   
   Ignores `ArrowDtype` in tests with pandas 3.
   
   ### Why are the changes needed?
   
   The `ArrowDtype` is used for the result of the predicates operations on some 
dtypes in pandas 3 by default, but the values should be same as `BooleanDtype`.
   
   It should be ignored in tests.
   
   ```py
   >>> pser = pd.Series(["x", "y", "z", None], dtype="string")
   >>> other_pser = pd.Series([None, "z", "y", "x"], dtype="string")
   >>>
   >>> pser == other_pser
   0     <NA>
   1    False
   2    False
   3     <NA>
   dtype: bool[pyarrow]
   >>> (pser == other_pser).astype("boolean")
   0     <NA>
   1    False
   2    False
   3     <NA>
   dtype: boolean
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Updated the test util.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.
   


-- 
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