What's the syntax for using a groupby-having in Spark without an sql/hiveContext? I know I can do
DataFrame df = some_df
df.registreTempTable("df");
df1 = sqlContext.sql("SELECT * FROM df GROUP BY col1 HAVING some stuff")
but how do I do it with a syntax like
df.select(df.col("*")).groupBy(df.col("col1")).having("some stuff")
This .having()
does not seem to exist.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…