希望使用Scala编写如下代码:
select store, product, count(*) from table group by store, product;
+-----+------+--------+
// |store|prod |count(*)|
// +-----+------+--------+
// |51 |42 |2 |
// |51 |42 |5 |
// |89 |44 |9 |
我需要这样的东西:
table.groupBy("store","product").count("store","product")