Hi all, Sorry for posting this twice, I need to know how to group by several column attributes (e.g.,List<Column > groupByAttributes) a dataset (dataset) and then count the occurrences of associated grouped rows, how do i achieve that ? I tried through the following code:
> Dataset<Row> groupedRows = dataset.withColumn("freqs", > count("*").over(Window.partitionBy(groupByAttributes.toArray(new > Column[groupByAttributes.size()])))); Would that do it? To note: I want the "grouped" rows to be separate for the subsequent transformations so a groupBY is not adequate in this case.