diff options
author | Michael Armbrust <michael@databricks.com> | 2015-11-05 21:42:32 -0800 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2015-11-05 21:42:32 -0800 |
commit | 363a476c3fefb0263e63fd24df0b2779a64f79ec (patch) | |
tree | 74a240205a164f87b8b66a3deefb94c21a25b367 /project/MimaExcludes.scala | |
parent | eec74ba8bde7f9446cc38e687bda103e85669d35 (diff) | |
download | spark-363a476c3fefb0263e63fd24df0b2779a64f79ec.tar.gz spark-363a476c3fefb0263e63fd24df0b2779a64f79ec.tar.bz2 spark-363a476c3fefb0263e63fd24df0b2779a64f79ec.zip |
[SPARK-11528] [SQL] Typed aggregations for Datasets
This PR adds the ability to do typed SQL aggregations. We will likely also want to provide an interface to allow users to do aggregations on objects, but this is deferred to another PR.
```scala
val ds = Seq(("a", 10), ("a", 20), ("b", 1), ("b", 2), ("c", 1)).toDS()
ds.groupBy(_._1).agg(sum("_2").as[Int]).collect()
res0: Array(("a", 30), ("b", 3), ("c", 1))
```
Author: Michael Armbrust <michael@databricks.com>
Closes #9499 from marmbrus/dataset-agg.
Diffstat (limited to 'project/MimaExcludes.scala')
0 files changed, 0 insertions, 0 deletions