spark-instrumented-optimizer/sql/core/src
Aaron Davidson c3576ffcd7 [SQL] Minor: Introduce SchemaRDD#aggregate() for simple aggregations
```scala
rdd.aggregate(Sum('val))
```
is just shorthand for

```scala
rdd.groupBy()(Sum('val))
```

but seems be more natural than doing a groupBy with no grouping expressions when you really just want an aggregation over all rows.

Did not add a JavaSchemaRDD or Python API, as these seem to be lacking several other methods like groupBy() already -- leaving that cleanup for future patches.

Author: Aaron Davidson <aaron@databricks.com>

Closes #874 from aarondav/schemardd and squashes the following commits:

e9e68ee [Aaron Davidson] Add comment
db6afe2 [Aaron Davidson] Introduce SchemaRDD#aggregate() for simple aggregations
2014-05-25 18:37:44 -07:00
..
main/scala/org/apache/spark/sql [SQL] Minor: Introduce SchemaRDD#aggregate() for simple aggregations 2014-05-25 18:37:44 -07:00
test [SQL] Minor: Introduce SchemaRDD#aggregate() for simple aggregations 2014-05-25 18:37:44 -07:00