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-8370: [C++] Migrate type/schema APIs to Result<T> #6872

Closed
wants to merge 2 commits into from

Conversation

pitrou
Copy link
Member

@pitrou pitrou commented Apr 8, 2020

Also some clean up in the Python wrap/unwrap functions.

@pitrou
Copy link
Member Author

pitrou commented Apr 8, 2020

cc @wesm @xhochy for the PyArrow changes.

@github-actions
Copy link

github-actions bot commented Apr 8, 2020

Also some clean up in the Python wrap/unwrap functions.
@pitrou pitrou force-pushed the ARROW-8370-result-type-apis branch from aa36675 to 3d6a6c6 Compare April 8, 2020 14:52
Copy link
Member

@bkietz bkietz left a comment

Choose a reason for hiding this comment

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

PyObject*); \
ARROW_PYTHON_EXPORT PyObject* wrap_##FUNC_SUFFIX(const std::shared_ptr<TYPE_NAME>&); \
ARROW_DEPRECATED("Use Result-returning version") \
ARROW_PYTHON_EXPORT Status unwrap_##FUNC_SUFFIX(PyObject*, \
Copy link
Member

Choose a reason for hiding this comment

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

Is it necessary to deprecate these instead of just removing them? Aren't they internal?

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 don't know. @wesm or @xhochy could say.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Ok. In this case, I've renamed the XXX_record_batch APIs to XXX_batch, for consistency with the Cython API. Is that a problem?

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, looks good here

@wesm wesm closed this in 90a47c0 Apr 8, 2020
@pitrou pitrou deleted the ARROW-8370-result-type-apis branch April 8, 2020 17:30
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