Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

No description provided.

@jorisvandenbossche
Copy link
Member Author

I wanted to add the same to ChunkedArray, but it seems that for ChunkedArray we already defined __eq__ to be the same as .equals(..) (so not element-wise).

Is that something we want to (hard) break?

@github-actions
Copy link

@wesm
Copy link
Member

wesm commented May 26, 2020

@jorisvandenbossche I'm OK with changing ChunkedArray.__eq__

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe factor this out into a helper function to avoid the code duplication?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved the op to function name conversion into a helper function

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a JIRA about adding a pyarrow.scalar function (in order to do pa.scalar(2) here)?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a case to show comparing with a null scalar?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not directly sure how to create an actual null scalar (the pa.array([None]).sum() trick doesn't work, because the sum or minmax kernel is not implemented for null type)

@jorisvandenbossche jorisvandenbossche force-pushed the ARROW-5854-array-compare branch from 142a4fd to e1623b3 Compare May 28, 2020 15:06
@jorisvandenbossche
Copy link
Member Author

Updated to add the comparison ops to ChunkedArray as well

Copy link
Member

@wesm wesm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1. The CI failure is ARROW-8999, I've seen it in other PRs so don't think it's related to this

@wesm wesm closed this in b2287a2 Jun 1, 2020
@jorisvandenbossche jorisvandenbossche deleted the ARROW-5854-array-compare branch June 2, 2020 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants