Github user tdas commented on a diff in the pull request: https://github.com/apache/spark/pull/15949#discussion_r89408184 --- Diff: sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamingAggregationSuite.scala --- @@ -235,4 +237,86 @@ class StreamingAggregationSuite extends StreamTest with BeforeAndAfterAll { CheckLastBatch(("a", 30), ("b", 3), ("c", 1)) ) } + + test("prune results by current_time, complete mode") { + import testImplicits._ + import StreamingAggregationSuite._ + clock = new StreamManualClock + + val inputData = MemoryStream[Long] + + val aggregated = + inputData.toDF() + .groupBy($"value") + .agg(count("*")) + .as[(Long, Long)] --- End diff -- `as` not needed
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org