-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-13226: [Python] Add a general purpose cython trampolining utility #10619
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
Conversation
cpp/src/arrow/python/common.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is meant to be called from arbitrary C++ code, it should probably take the GIL before anything else. Perhaps reuse SafeCallIntoPython?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SafeCallIntoPython assumes that we're returning a Result<T> or Status, which unbound_ doesn't (it returns T or void).
Additionally, gcc4.8 cannot pass a parameter pack into a lambda
I'll use PyAcquireGIL
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
python/pyarrow/tests/test_dataset.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this meant to remain commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately there's a segfault I can't track down for this non-example usage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, I merged this in and modified this part somewhat. It's working for me at #10628
|
I've used this as part of #10628 which uses it to hook metadata_collector into the file visitor. If we want to merge this separately maybe reduce the scope to be just BindFunction? |
|
@westonpace alright I've opened a JIRA just for BindFunction and I'll strip the dataset:: specifics |
c587765 to
349858d
Compare
|
+1, merging |
No description provided.