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-8209: [Python] Improve error message when trying to access duplicate Table column #6831

Closed
wants to merge 2 commits into from

Conversation

wesm
Copy link
Member

@wesm wesm commented Apr 3, 2020

Also adds small binding for Schema::GetAllFieldIndices

@github-actions
Copy link

github-actions bot commented Apr 3, 2020


assert table.schema.get_field_index('a') == -1

# Not guaranteed to be sorted
Copy link
Member

Choose a reason for hiding this comment

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

should we guarantee it in the python API? (eg by just putting a return sorted(...) around the return value in get_all_field_indices)

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 may as well sort in the C++ function. Stand by

@wesm
Copy link
Member Author

wesm commented Apr 4, 2020

+1

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

2 participants