apache-sparkWindow Functions in Spark SQL