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

[SPARK-51637][PYTHON] Implement createColumnarReader for Python Data Source #50414

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

wengh
Copy link
Contributor

@wengh wengh commented Mar 26, 2025

What changes were proposed in this pull request?

This PR makes Python Data Sources read data in columnar batches rather than rows. Currently, data is already in columnar batches when passing from Python to JVM, but turned into rows in the PartitionReaderFactory. This PR implements PartitionReaderFactory.createColumnarReader so that data remains in columnar format.

Why are the changes needed?

To improve Python Data Source performance.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Existing tests and new test in test_python_datasource.py to check that nested arrays and structs are read correctly.

Was this patch authored or co-authored using generative AI tooling?

No

@wengh wengh changed the title [WIP][PYTHON] Implement createColumnarReader for Python Data Source [SPARK-51637][PYTHON] Implement createColumnarReader for Python Data Source Mar 27, 2025
@wengh wengh marked this pull request as ready for review March 27, 2025 15:51
@wengh
Copy link
Contributor Author

wengh commented Mar 31, 2025

@ueshin @HyukjinKwon @allisonwang-db Please take a look at this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant