Zongheng Yang created SPARK-2186:
------------------------------------
Summary: 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
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)