摘要:
val goalsDF = Seq( ("messi", 2), ("messi", 1), ("pele", 3), ("pele", 1) ).toDF("name", "goals") goalsDF.show() + + + | name|goals| + + + |messi| 2| |m 阅读全文
摘要:
val goalsDF = Seq( ("messi", 2), ("messi", 1), ("pele", 3), ("pele", 1) ).toDF("name", "goals") goalsDF.show() + + + | name|goals| + + + |messi| 2| |m 阅读全文
摘要:
import org.apache.spark.sql.functions.{row_number, max, broadcast} import org.apache.spark.sql.expressions.Window val df = sc.parallelize(Seq( (0,"cat 阅读全文