[
https://issues.apache.org/jira/browse/SPARK-2186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Armbrust updated SPARK-2186:
------------------------------------
Target Version/s: 1.1.0
> Spark SQL DSL support for simple aggregations such as SUM and AVG
> -----------------------------------------------------------------
>
> Key: SPARK-2186
> URL: https://issues.apache.org/jira/browse/SPARK-2186
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 1.0.0
> Reporter: Zongheng Yang
> Priority: Minor
>
> Inspired by this thread
> (http://apache-spark-user-list.1001560.n3.nabble.com/Patterns-for-making-multiple-aggregations-in-one-pass-td7874.html):
> Spark SQL doesn't seem to have DSL support for simple aggregations such as
> AVG and SUM. It'd be nice if the user could avoid writing a SQL query and
> instead write something like:
> {code}
> data.select('country, 'age.avg, 'hits.sum).groupBy('country).collect()
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)