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

Question on distributing the read to multiple workers #2

Open
LauJohansson opened this issue Mar 8, 2024 · 1 comment
Open

Question on distributing the read to multiple workers #2

LauJohansson opened this issue Mar 8, 2024 · 1 comment

Comments

@LauJohansson
Copy link

In your Github source example, the reader read from the Github api.
This read, does it utilize spark (distributes) the read across multiple worker nodes?

@datanikkthegreek
Copy link

@LauJohansson I thought the same when testing it the first time. Have a look in def partition() in the DataSourceReader class. This will answer it.

https://github.com/apache/spark/blob/master/python/pyspark/sql/datasource.py

I also did a sample implementation here: #4

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

No branches or pull requests

2 participants