spark 新建一个column并用另一column的最大值赋值

finalDF.withColumn("NEW_COLUMN", max("start_date").over()).show()

 

 

Ref:

  https://stackoverflow.com/questions/59199685/create-a-new-column-with-max-value-of-another-column

posted @ 2020-09-21 17:15  mashuai_191  阅读(276)  评论(0编辑  收藏  举报