Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/6257#discussion_r30666734
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala ---
@@ -710,7 +750,59 @@ class DataFrame private[sql](
@scala.annotation.varargs
def groupBy(col1: String, cols: String*): GroupedData = {
val colNames: Seq[String] = col1 +: cols
- new GroupedData(this, colNames.map(colName => resolve(colName)))
+ new GroupedData(this, colNames.map(colName => resolve(colName)),
GroupByType)
+ }
+
+ /**
+ * Rollup the [[DataFrame]] using the specified columns, so we can run
aggregation on them.
+ * See [[GroupedData]] for all the available aggregate functions.
+ *
+ * This is a variant of groupBy that can only group by existing columns
using column names
--- End diff --
groupBy -> rollUp
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]