Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Window functions have a PARTITION BY clause to split the data in partitions and calculate window functions over those partitions individually.
Describe the solution you'd like
We can use Repartition::Hash to parallelize the execution.
Describe alternatives you've considered
n/a
Additional context
http://www.vldb.org/pvldb/vol8/p1058-leis.pdf&ved=2ahUKEwj80-3OjrfwAhUJPOwKHfdRAssQFjAMegQIEhAC&usg=AOvVaw2KKUPeYhyc-pEFTmlqyboj