Window Functions in Spark SQL: What Carries Over from T-SQL