Github user maropu commented on the pull request:
https://github.com/apache/spark/pull/10896#issuecomment-179139867
Yes, it is. The input query is;
```
val fields = Seq(StringType, DoubleType, DoubleType)
.zipWithIndex.map { case (dataType, index) =>
StructField(s"col$index", dataType, true)
}
val df = sqlContext.createDataFrame(rdd, StructType(fields))
val df2 = df.repartition($"col0").cache
val df3 = df2.groupBy($"col0").agg(Map("col1"->"sum", "col2"->"avg"))
df3.explain(true)
```
---
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]