cloud-fan commented on code in PR #48879:
URL: https://github.com/apache/spark/pull/48879#discussion_r1848299514


##########
sql/core/src/test/scala/org/apache/spark/sql/scripting/SqlScriptingInterpreterSuite.scala:
##########
@@ -31,10 +32,25 @@ import org.apache.spark.sql.test.SharedSparkSession
  *   are executed and output DataFrames are compared with expected outputs.
  */
 class SqlScriptingInterpreterSuite extends QueryTest with SharedSparkSession {
+
+  // Tests setup
+  private var originalSqlScriptingConfVal: String = _
+
+  protected override def beforeAll(): Unit = {
+    super.beforeAll()
+    originalSqlScriptingConfVal = 
conf.getConfString(SQLConf.SQL_SCRIPTING_ENABLED.key)

Review Comment:
   in `sql/core`, we have an easier way to set config for the entire suite:
   ```
   override def sparkConf  = super.sparkConf.set(...)
   ```



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