I am running this code daily and I am saving the output on some chosen location:
def aggConnections()(input: DataFrame) = { input .groupBy (