Skip to content

Add arrow adapter to stream record batches zero-copy into csp #519

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

arhamchopra
Copy link
Collaborator

@arhamchopra arhamchopra commented Apr 4, 2025

Partially resolves #297

  • Add tests

return None


ArrowHistoricalAdapter = py_pull_adapter_def(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does the docstring for this adapter automatically pull the docstring for the adapter impl? We should make sure it has good documentation

@arhamchopra arhamchopra force-pushed the ac/arrow_adapter branch 3 times, most recently from 5ac31a4 to 7ebce5c Compare April 10, 2025 22:48
Signed-off-by: Arham Chopra <[email protected]>
@arhamchopra arhamchopra reopened this Apr 30, 2025
@@ -192,9 +192,17 @@ void SingleTableParquetReader::setColumnAdaptersFromCurrentTable()
columnAdapter = createColumnAdapter( *this, *field, getCurFileOrTableName(), &getStructColumnMeta() );
auto &fieldInfo = fieldsInfo[ index ];

for( std::size_t i = 0; i < fieldInfo.m_width; ++i )
if( isArrowIPC() )
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is way to check if we are using the InMemoryTableParquetReader

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.

Proposed ArrowRecordBatchAdapter to replace ParquetReader with read_from_memory_tables=True
2 participants