Github user viirya commented on a diff in the pull request:
https://github.com/apache/spark/pull/19363#discussion_r144500697
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/RelationalGroupedDataset.scala ---
@@ -465,6 +466,24 @@ class RelationalGroupedDataset protected[sql](
Dataset.ofRows(df.sparkSession, plan)
}
+
+ override def toString: String = {
+ try {
+ val builder = new StringBuilder
+ builder.append("RelationalGroupedDataset: [key: [")
+ val kFields = groupingExprs.map(_.asInstanceOf[NamedExpression]).map
{
--- End diff --
Are all expressions in `groupingExprs` `NamedExpression`?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]