-
Notifications
You must be signed in to change notification settings - Fork 183
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
Narrow dependency #44
Comments
Child partition can depend on one or more parent partitions. |
This is interesting. Say if we have 3 partitions: 1, 2, and 3. With overlapping, then 2 depends on 1, 3 depends on 2. Then the execution order would be serialized: 1 -> 2 -> 3. So do we lost parallelism? |
Well, if the parent RDD is fully parallelized, then we can still get some parallelism in the children overlapping RDD, this might be true during a window aggregation. I will test this and let you know. |
I saw this code in overlapped RDD implementation: https://github.com/twosigma/flint/blob/master/src/main/scala/com/twosigma/flint/rdd/OverlappedOrderedRDD.scala#L50
Then I read about what does narrow dependency mean: https://github.com/rohgar/scala-spark-4/wiki/Wide-vs-Narrow-Dependencies , there it says: "Narrow dependencies: Each partition of the parent RDD is used by at most one partition of the child RDD."
But in flint implementation, the overlappedRDD is the child RDD and the orderRDD is its parent. But one partition in the parent will be used in multiple partitions in the child overlappedRDD, because of the overlapping.
So, what am I missing to understand this?
Thanks in advance, Xiang
The text was updated successfully, but these errors were encountered: