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

RDD.mapPartitions should provide iteratro or list instead of concrete element #34

Open
adrian-dankiv opened this issue Mar 29, 2018 · 0 comments

Comments

@adrian-dankiv
Copy link

adrian-dankiv commented Mar 29, 2018

RDD.mapPartitions in the mock works like RDD.map but shouldn't.

import dummy_spark
rdd = dummy_spark.RDD([1, 2, 3], None)
_ = rdd.map(print) # should print 1\n2\n3\n
1
2
3
# OK!
_ = rdd.mapPartitions(print) # should print [1, 2, 3] or <iterator object>
1
2
3
# FAIL!
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

1 participant