[
https://issues.apache.org/jira/browse/ARROW-16340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614113#comment-17614113
]
Yue Ni edited comment on ARROW-16340 at 10/7/22 2:47 PM:
---------------------------------------------------------
[~kou]
> // Call the following Python code from pybind11
> py_reader = pyarrow.ipc.RecordBatchReader._import_from_c(&c_stream);
Could you please briefly explain more how this works? I would like to confirm,
do you mean the `pyarrow.ipc.RecordBatchReader._import_from_c` is python code
and not C++ code, and we could use pybind11 to execute the pyarrow python code
to do this (probably using pybind11's API like
[https://pybind11.readthedocs.io/en/stable/advanced/embedding.html#executing-python-code)?]
was (Author: niyue):
[~kou]
> // Call the following Python code from pybind11
> py_reader = pyarrow.ipc.RecordBatchReader._import_from_c(&c_stream);
Could you please explain more how this works? I would like to confirm, do you
mean the `pyarrow.ipc.RecordBatchReader._import_from_c` is python code and not
C++ code, and we could use pybind11 to execute the pyarrow python code to do
this (probably using pybind11's API like
https://pybind11.readthedocs.io/en/stable/advanced/embedding.html#executing-python-code)?
> [C++][Python] Move all Python related code into PyArrow
> -------------------------------------------------------
>
> Key: ARROW-16340
> URL: https://issues.apache.org/jira/browse/ARROW-16340
> Project: Apache Arrow
> Issue Type: Improvement
> Components: C++, Python
> Reporter: Alenka Frim
> Assignee: Alenka Frim
> Priority: Major
> Labels: pull-request-available
> Fix For: 10.0.0
>
> Time Spent: 33h 10m
> Remaining Estimate: 0h
>
> Move {{src/arrow/python}} directory into {{pyarrow}} and arrange PyArrow to
> build it.
> More details can be found on this thread:
> https://lists.apache.org/thread/jbxyldhqff4p9z53whhs95y4jcomdgd2
--
This message was sent by Atlassian Jira
(v8.20.10#820010)