Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15852#discussion_r88353911
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/streaming/StreamTest.scala ---
    @@ -330,14 +331,17 @@ trait StreamTest extends QueryTest with 
SharedSQLContext with Timeouts {
           startedTest.foreach { action =>
             logInfo(s"Processing test stream action: $action")
             action match {
    -          case StartStream(trigger, triggerClock) =>
    +          case StartStream(trigger, triggerClock, pairs) =>
                 verify(currentStream == null, "stream already running")
                 verify(triggerClock.isInstanceOf[SystemClock]
                   || triggerClock.isInstanceOf[StreamManualClock],
                   "Use either SystemClock or StreamManualClock to start the 
stream")
                 if (triggerClock.isInstanceOf[StreamManualClock]) {
                   manualClockExpectedTime = 
triggerClock.asInstanceOf[StreamManualClock].getTimeMillis()
                 }
    +
    +            pairs.foreach(pair => spark.conf.set(pair._1, pair._2))
    --- End diff --
    
    You need to also change the confs back at the end of this method to avoid 
affecting other tests sharing the same SparkSession.


---
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]

Reply via email to