Github user dilipbiswal commented on a diff in the pull request:
https://github.com/apache/spark/pull/13483#discussion_r65657150
--- Diff:
sql/core/src/test/scala/org/apache/spark/sql/DatasetAggregatorSuite.scala ---
@@ -224,6 +224,26 @@ class DatasetAggregatorSuite extends QueryTest with
SharedSQLContext {
checkAnswer(df.groupBy($"j").agg(RowAgg.toColumn), Row("a", 1) ::
Row("b", 5) :: Nil)
}
+ test("SPARK-15688: Remove redundant expressions from aggregate") {
+ val df = Seq(1 -> "a", 2 -> "b", 3 -> "b").toDF("col1", "col2")
--- End diff --
@gatorsmile Ah.. good idea. I will make the change. Thanks :-)
---
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]