ericm-db commented on code in PR #54373:
URL: https://github.com/apache/spark/pull/54373#discussion_r2830783082


##########
sql/core/src/test/scala/org/apache/spark/sql/streaming/test/StreamingQueryEvolutionSuite.scala:
##########
@@ -17,17 +17,51 @@
 
 package org.apache.spark.sql.streaming.test
 
-import org.scalatest.Tag
+import scala.concurrent.duration._
+
+import org.apache.hadoop.fs.Path
+import org.mockito.ArgumentMatchers.{any, eq => meq}
+import org.mockito.Mockito._
+import org.scalatest.{BeforeAndAfterEach, Tag}
 
 import org.apache.spark.sql._
 import org.apache.spark.sql.internal.SQLConf
 import org.apache.spark.sql.streaming.StreamTest
+import org.apache.spark.sql.streaming.Trigger._
+import org.apache.spark.util.Utils
 
 /**
  * Test suite for streaming source naming and validation.
  * Tests cover the naming API, validation rules, and resolution pipeline.
  */
-class StreamingQueryEvolutionSuite extends StreamTest {
+class StreamingQueryEvolutionSuite extends StreamTest with BeforeAndAfterEach {

Review Comment:
   All future evolution tests can go in this suite though - I think we can keep 
the name



##########
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/runtime/MicroBatchExecution.scala:
##########
@@ -183,15 +185,17 @@ class MicroBatchExecution(
     val disabledSources =
       
Utils.stringToSeq(sparkSession.sessionState.conf.disabledV2StreamingMicroBatchReaders)
 
+    val enforceNamed = 
sparkSessionForStream.sessionState.conf.enableStreamingSourceEvolution

Review Comment:
   Ah sure



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to