Skip to content

[WIP][SPARK-52646][PS] Avoid CAST_INVALID_INPUT of __eq__ in ANSI mode #51370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xinrong-meng
Copy link
Member

@xinrong-meng xinrong-meng commented Jul 4, 2025

What changes were proposed in this pull request?

Avoid CAST_INVALID_INPUT of __eq__ in ANSI mode

Why are the changes needed?

Does this PR introduce any user-facing change?

>>> psidx1 = ps.Index(['1', '2', '3'])         
>>> psidx2 = ps.Index([1, 2, 3])
>>> psidx1 == psidx2
Index([False, False, False], dtype='bool')                                      
>>> psidx3 = ps.Index([1.0, 2.0, 3.0])
>>> psidx3 == psidx2
Index([True, True, True], dtype='bool')
>>> psidx4 = ps.Index([True, False, True])
>>> psidx4 == psidx2
Index([True, False, False], dtype='bool')

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant