I have the dataset in spark as in picture , I want to aggregate Units and Dollars of this dataset , but skip the row where Month is null during my aggregation . How can I do this in spark java.
My result should be
I have the dataset in spark as in picture , I want to aggregate Units and Dollars of this dataset , but skip the row where Month is null during my aggregation . How can I do this in spark java.
My result should be