Question
What does aggregate allow that reduce does not?
Select an option. Your answer will be checked instantly.
Correct Answer: A. Different types for input elements and the final accumulator
Explanation:
aggregate uses one function within partitions and another across partition results.
Its zero value can have a different type from RDD elements.
Leave a Reply