Description
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:
data.select('country, 'age.avg, 'hits.sum).groupBy('country).collect()
Attachments
Issue Links
- links to