&#010;&#010;== Results ==&#010;!== Correct Answer - 1 == == Spark Answer - 0 ==&#010;!struct<_1:int,_2:int> struct<>&#010;![10,5] &#010; &#010;&#010;== Progress ==&#010; AddData to MemoryStream[value#276606]: 10,11,12,13,14,15&#010; CheckLastBatch: &#010; AddData to MemoryStream[value#276606]: 25&#010; StopStream&#010; StartStream(ProcessingTime(0),org.apache.spark.util.SystemClock@7f3c4b77,Map())&#010; CheckLastBatch: &#010; AddData to MemoryStream[value#276606]: 25&#010;=> CheckLastBatch: [10,5]&#010; StopStream&#010; AssertOnQuery(<condition>, )&#010; StartStream(ProcessingTime(0),org.apache.spark.util.SystemClock@fc28609,Map())&#010; CheckLastBatch: [10,5]&#010; AddData to MemoryStream[value#276606]: 30&#010; CheckLastBatch: &#010; StopStream&#010; StartStream(ProcessingTime(0),org.apache.spark.util.SystemClock@a6825c7,Map())&#010; AddData to MemoryStream[value#276606]: 17&#010; CheckLastBatch: &#010; AddData to MemoryStream[value#276606]: 30&#010; CheckLastBatch: &#010; AddData to MemoryStream[value#276606]: 30&#010; CheckLastBatch: [15,2]&#010;&#010;== Stream ==&#010;Output Mode: Append&#010;Stream state: {MemoryStream[value#276606]: 2}&#010;Thread state: alive&#010;Thread stack trace: java.lang.Thread.sleep(Native Method)&#010;org.apache.spark.sql.execution.streaming.StreamExecution$$anonfun$org$apache$spark$sql$execution$streaming$StreamExecution$$runBatches$1.apply$mcZ$sp(StreamExecution.scala:327)&#010;org.apache.spark.sql.execution.streaming.ProcessingTimeExecutor.execute(TriggerExecutor.scala:56)&#010;org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runBatches(StreamExecution.scala:295)&#010;org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:211)&#010;&#010;&#010;== Sink ==&#010;0: &#010;1: &#010;2: &#010;&#010;&#010;== Plan ==&#010;== Parsed Logical Plan ==&#010;Project [cast(window#276615.start as bigint) AS CAST(window['start'] AS BIGINT)#276628L, count#276621L]&#010;+- Aggregate [window#276622-T10000ms], [window#276622-T10000ms AS window#276615, count(1) AS count#276621L]&#010; +- Filter isnotnull(eventTime#276609-T10000ms)&#010; +- Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion((((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0) + 5000000), LongType, TimestampType)) AS window#276622, value#276672, eventTime#276609-T10000ms]&#010; +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds&#010; +- Project [value#276672, cast(value#276672 as timestamp) AS eventTime#276609]&#010; +- LocalRelation [value#276672]&#010;&#010;== Analyzed Logical Plan ==&#010;CAST(window['start'] AS BIGINT): bigint, count: bigint&#010;Project [cast(window#276615.start as bigint) AS CAST(window['start'] AS BIGINT)#276628L, count#276621L]&#010;+- Aggregate [window#276622-T10000ms], [window#276622-T10000ms AS window#276615, count(1) AS count#276621L]&#010; +- Filter isnotnull(eventTime#276609-T10000ms)&#010; +- Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion((((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0) + 5000000), LongType, TimestampType)) AS window#276622, value#276672, eventTime#276609-T10000ms]&#010; +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds&#010; +- Project [value#276672, cast(value#276672 as timestamp) AS eventTime#276609]&#010; +- LocalRelation [value#276672]&#010;&#010;== Optimized Logical Plan ==&#010;Aggregate [window#276622-T10000ms], [cast(window#276622-T10000ms.start as bigint) AS CAST(window['start'] AS BIGINT)#276628L, count(1) AS count#276621L]&#010;+- Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 5000000), LongType, TimestampType)) AS window#276622]&#010; +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds&#010; +- LocalRelation [eventTime#276609]&#010;&#010;== Physical Plan ==&#010;*HashAggregate(keys=[window#276622-T10000ms], functions=[count(1)], output=[CAST(window['start'] AS BIGINT)#276628L, count#276621L])&#010;+- StateStoreSave [window#276622-T10000ms], StatefulOperatorStateInfo(file:/home/jenkins/workspace/spark-master-test-maven-hadoop-2.7/sql/core/target/tmp/streaming.metadata-ebec3391-49cb-4f57-8051-c4ea998cd3b0/state,b3fd7cb9-d4de-448d-90bb-635fb24c5e38,0,2), Append, 5000&#010; +- *HashAggregate(keys=[window#276622-T10000ms], functions=[merge_count(1)], output=[window#276622-T10000ms, count#276659L])&#010; +- StateStoreRestore [window#276622-T10000ms], StatefulOperatorStateInfo(file:/home/jenkins/workspace/spark-master-test-maven-hadoop-2.7/sql/core/target/tmp/streaming.metadata-ebec3391-49cb-4f57-8051-c4ea998cd3b0/state,b3fd7cb9-d4de-448d-90bb-635fb24c5e38,0,2)&#010; +- *HashAggregate(keys=[window#276622-T10000ms], functions=[merge_count(1)], output=[window#276622-T10000ms, count#276659L])&#010; +- Exchange hashpartitioning(window#276622-T10000ms, 10)&#010; +- *HashAggregate(keys=[window#276622-T10000ms], functions=[partial_count(1)], output=[window#276622-T10000ms, count#276659L])&#010; +- *Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 5000000), LongType, TimestampType)) AS window#276622]&#010; +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds&#010; +- LocalTableScan [eventTime#276609]&#010; &#010;


      org.scalatest.exceptions.TestFailedException: 

== Results ==
!== Correct Answer - 1 ==   == Spark Answer - 0 ==
!struct<_1:int,_2:int>      struct<>
![10,5]                     
        

== Progress ==
   AddData to MemoryStream[value#276606]: 10,11,12,13,14,15
   CheckLastBatch: 
   AddData to MemoryStream[value#276606]: 25
   StopStream
   StartStream(ProcessingTime(0),org.apache.spark.util.SystemClock@7f3c4b77,Map())
   CheckLastBatch: 
   AddData to MemoryStream[value#276606]: 25
=> CheckLastBatch: [10,5]
   StopStream
   AssertOnQuery(<condition>, )
   StartStream(ProcessingTime(0),org.apache.spark.util.SystemClock@fc28609,Map())
   CheckLastBatch: [10,5]
   AddData to MemoryStream[value#276606]: 30
   CheckLastBatch: 
   StopStream
   StartStream(ProcessingTime(0),org.apache.spark.util.SystemClock@a6825c7,Map())
   AddData to MemoryStream[value#276606]: 17
   CheckLastBatch: 
   AddData to MemoryStream[value#276606]: 30
   CheckLastBatch: 
   AddData to MemoryStream[value#276606]: 30
   CheckLastBatch: [15,2]

== Stream ==
Output Mode: Append
Stream state: {MemoryStream[value#276606]: 2}
Thread state: alive
Thread stack trace: java.lang.Thread.sleep(Native Method)
org.apache.spark.sql.execution.streaming.StreamExecution$$anonfun$org$apache$spark$sql$execution$streaming$StreamExecution$$runBatches$1.apply$mcZ$sp(StreamExecution.scala:327)
org.apache.spark.sql.execution.streaming.ProcessingTimeExecutor.execute(TriggerExecutor.scala:56)
org.apache.spark.sql.execution.streaming.StreamExecution.org$apache$spark$sql$execution$streaming$StreamExecution$$runBatches(StreamExecution.scala:295)
org.apache.spark.sql.execution.streaming.StreamExecution$$anon$1.run(StreamExecution.scala:211)


== Sink ==
0: 
1: 
2: 


== Plan ==
== Parsed Logical Plan ==
Project [cast(window#276615.start as bigint) AS CAST(window['start'] AS BIGINT)#276628L, count#276621L]
+- Aggregate [window#276622-T10000ms], [window#276622-T10000ms AS window#276615, count(1) AS count#276621L]
   +- Filter isnotnull(eventTime#276609-T10000ms)
      +- Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion((((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0) + 5000000), LongType, TimestampType)) AS window#276622, value#276672, eventTime#276609-T10000ms]
         +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds
            +- Project [value#276672, cast(value#276672 as timestamp) AS eventTime#276609]
               +- LocalRelation [value#276672]

== Analyzed Logical Plan ==
CAST(window['start'] AS BIGINT): bigint, count: bigint
Project [cast(window#276615.start as bigint) AS CAST(window['start'] AS BIGINT)#276628L, count#276621L]
+- Aggregate [window#276622-T10000ms], [window#276622-T10000ms AS window#276615, count(1) AS count#276621L]
   +- Filter isnotnull(eventTime#276609-T10000ms)
      +- Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion((((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) + cast(1 as bigint)) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / cast(5000000 as double))) END + cast(0 as bigint)) - cast(1 as bigint)) * 5000000) + 0) + 5000000), LongType, TimestampType)) AS window#276622, value#276672, eventTime#276609-T10000ms]
         +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds
            +- Project [value#276672, cast(value#276672 as timestamp) AS eventTime#276609]
               +- LocalRelation [value#276672]

== Optimized Logical Plan ==
Aggregate [window#276622-T10000ms], [cast(window#276622-T10000ms.start as bigint) AS CAST(window['start'] AS BIGINT)#276628L, count(1) AS count#276621L]
+- Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 5000000), LongType, TimestampType)) AS window#276622]
   +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds
      +- LocalRelation [eventTime#276609]

== Physical Plan ==
*HashAggregate(keys=[window#276622-T10000ms], functions=[count(1)], output=[CAST(window['start'] AS BIGINT)#276628L, count#276621L])
+- StateStoreSave [window#276622-T10000ms], StatefulOperatorStateInfo(file:/home/jenkins/workspace/spark-master-test-maven-hadoop-2.7/sql/core/target/tmp/streaming.metadata-ebec3391-49cb-4f57-8051-c4ea998cd3b0/state,b3fd7cb9-d4de-448d-90bb-635fb24c5e38,0,2), Append, 5000
   +- *HashAggregate(keys=[window#276622-T10000ms], functions=[merge_count(1)], output=[window#276622-T10000ms, count#276659L])
      +- StateStoreRestore [window#276622-T10000ms], StatefulOperatorStateInfo(file:/home/jenkins/workspace/spark-master-test-maven-hadoop-2.7/sql/core/target/tmp/streaming.metadata-ebec3391-49cb-4f57-8051-c4ea998cd3b0/state,b3fd7cb9-d4de-448d-90bb-635fb24c5e38,0,2)
         +- *HashAggregate(keys=[window#276622-T10000ms], functions=[merge_count(1)], output=[window#276622-T10000ms, count#276659L])
            +- Exchange hashpartitioning(window#276622-T10000ms, 10)
               +- *HashAggregate(keys=[window#276622-T10000ms], functions=[partial_count(1)], output=[window#276622-T10000ms, count#276659L])
                  +- *Project [named_struct(start, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 0), LongType, TimestampType), end, precisetimestampconversion(((((CASE WHEN (cast(CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) as double) = (cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) THEN (CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) + 1) ELSE CEIL((cast((precisetimestampconversion(eventTime#276609-T10000ms, TimestampType, LongType) - 0) as double) / 5000000.0)) END + 0) - 1) * 5000000) + 5000000), LongType, TimestampType)) AS window#276622]
                     +- EventTimeWatermark eventTime#276609: timestamp, interval 10 seconds
                        +- LocalTableScan [eventTime#276609]
         
         
      at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:495)
      at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1555)
      at org.scalatest.Assertions$class.fail(Assertions.scala:1328)
      at org.scalatest.FunSuite.fail(FunSuite.scala:1555)
      at org.apache.spark.sql.streaming.StreamTest$class.failTest$1(StreamTest.scala:344)
      at org.apache.spark.sql.streaming.StreamTest$$anonfun$liftedTree1$1$1$$anonfun$apply$27.apply(StreamTest.scala:566)
      at org.apache.spark.sql.streaming.StreamTest$$anonfun$liftedTree1$1$1$$anonfun$apply$27.apply(StreamTest.scala:566)
      at scala.Option.foreach(Option.scala:257)
      at org.apache.spark.sql.streaming.StreamTest$$anonfun$liftedTree1$1$1.apply(StreamTest.scala:565)
      at org.apache.spark.sql.streaming.StreamTest$$anonfun$liftedTree1$1$1.apply(StreamTest.scala:354)
      at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
      at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
      at org.apache.spark.sql.streaming.StreamTest$class.liftedTree1$1(StreamTest.scala:354)
      at org.apache.spark.sql.streaming.StreamTest$class.testStream(StreamTest.scala:353)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite.testStream(EventTimeWatermarkSuite.scala:33)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite$$anonfun$10.apply$mcV$sp(EventTimeWatermarkSuite.scala:248)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite$$anonfun$10.apply(EventTimeWatermarkSuite.scala:239)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite$$anonfun$10.apply(EventTimeWatermarkSuite.scala:239)
      at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
      at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
      at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      at org.scalatest.Transformer.apply(Transformer.scala:22)
      at org.scalatest.Transformer.apply(Transformer.scala:20)
      at org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:166)
      at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:68)
      at org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:163)
      at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
      at org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:175)
      at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      at org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:175)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(EventTimeWatermarkSuite.scala:33)
      at org.scalatest.BeforeAndAfterEach$class.runTest(BeforeAndAfterEach.scala:255)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite.org$scalatest$BeforeAndAfter$$super$runTest(EventTimeWatermarkSuite.scala:33)
      at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:200)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite.runTest(EventTimeWatermarkSuite.scala:33)
      at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
      at org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:208)
      at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)
      at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)
      at scala.collection.immutable.List.foreach(List.scala:381)
      at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
      at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)
      at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)
      at org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:208)
      at org.scalatest.FunSuite.runTests(FunSuite.scala:1555)
      at org.scalatest.Suite$class.run(Suite.scala:1424)
      at org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1555)
      at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
      at org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:212)
      at org.scalatest.SuperEngine.runImpl(Engine.scala:545)
      at org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:212)
      at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterAll$$super$run(SparkFunSuite.scala:31)
      at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)
      at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite.org$scalatest$BeforeAndAfter$$super$run(EventTimeWatermarkSuite.scala:33)
      at org.scalatest.BeforeAndAfter$class.run(BeforeAndAfter.scala:241)
      at org.apache.spark.sql.streaming.EventTimeWatermarkSuite.run(EventTimeWatermarkSuite.scala:33)
      at org.scalatest.Suite$class.callExecuteOnSuite$1(Suite.scala:1492)
      at org.scalatest.Suite$$anonfun$runNestedSuites$1.apply(Suite.scala:1528)
      at org.scalatest.Suite$$anonfun$runNestedSuites$1.apply(Suite.scala:1526)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
      at org.scalatest.Suite$class.runNestedSuites(Suite.scala:1526)
      at org.scalatest.tools.DiscoverySuite.runNestedSuites(DiscoverySuite.scala:29)
      at org.scalatest.Suite$class.run(Suite.scala:1421)
      at org.scalatest.tools.DiscoverySuite.run(DiscoverySuite.scala:29)
      at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:55)
      at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2563)
      at org.scalatest.tools.Runner$$anonfun$doRunRunRunDaDoRunRun$3.apply(Runner.scala:2557)
      at scala.collection.immutable.List.foreach(List.scala:381)
      at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:2557)
      at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1044)
      at org.scalatest.tools.Runner$$anonfun$runOptionallyWithPassFailReporter$2.apply(Runner.scala:1043)
      at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:2722)
      at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1043)
      at org.scalatest.tools.Runner$.main(Runner.scala:860)
      at org.scalatest.tools.Runner.main(Runner.scala)