Skip to content
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

ARROW-2702: [Python] Change a couple of error types in numpy_to_arrow.cc #7336

Closed
wants to merge 1 commit into from

Conversation

wesm
Copy link
Member

@wesm wesm commented Jun 3, 2020

I quickly reviewed these errors and it seemed like one error that is hit in the test suite might be better as a ValueError but I'm not sure.

@github-actions
Copy link

github-actions bot commented Jun 3, 2020

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Yes, I think that one certainly makes sense to not be a TypeError
(maybe could also be a KeyError, but since it is about invalid values inside a struct array, I think ValueError is fine

Copy link
Member

@pitrou pitrou left a comment

Choose a reason for hiding this comment

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

Looks fine to me. I have no strong opinion on TypeError vs ValueError here.

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.

None yet

3 participants