Spark Sql Max Over