I am new to Spark and I have some questions about the aggregation function MAX and MIN in SparkSQL
In SparkSQL, when I use the MAX / MIN function only MAX(value) / MIN(value) is returned.
But How about if I also want other corresponding column?
For e.g. Given a dataframe with columns time, value and label, how can I get the time with the MIN(Value) grouped by label?
Thanks.