apache / apache/arrow

How to pass ArrowTable from Python to C++ via ctypes or Cython in the same process?

Open
#35,773 1 comment 0 reactions 0 assignees View on GitHub
Component: C++ Component: Python Type: usage
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 18h
Merged PRs (30d)
91

Description

### Describe the usage question you have. Please include as many useful details as possible.

How to pass ArrowTable from Python to C++ (and C++ to Python) via ctypes or Cython in the same process?

The current idea is to serialize ArrowTable into streams on the Python side, reverse sequence the streams on the C++ side, and transfer binary streams and pointers. Is there a better solution or example?

### Component(s)

C++, Python

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by investigating the existing Python and C++ interoperability options, including ctypes, Cython, and stream serialization. Done would mean documenting a recommended approach or providing an example for transferring ArrowTable objects in the same process.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
data-engineering
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.