spark scala dataframe 窗户函数Window的应用 实现row_number() over(partition by , order by )
需要引入的包:
import org.apache.spark.sql.expressions.Window
import org.apache.spark.sql.functions._
//scala实现row_number() over(partition by , order by )
val w = Window.partitionBy($"prediction").o...
原创
2019-04-02 14:47:43 ·
3844 阅读 ·
0 评论