r - Error: length(cols) > 0 is not TRUE on SparkR agg function -


i try group dataframe column:

>sparkr::agg(sparkr::groupby(df, "column_1")) 

why following error:

error: length(cols) > 0 not true 

i found out kind of error (see one) relates parameters provided function (here: agg). missed specifying output column:

sparkr::agg(sparkr::groupby(df, "column_1"), "column_1") 

Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -