ulysses-you commented on a change in pull request #30481:
URL: https://github.com/apache/spark/pull/30481#discussion_r540709296



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala
##########
@@ -932,11 +932,20 @@ object SQLConf {
         "a positive value, a running query will be cancelled automatically 
when the timeout is " +
         "exceeded, otherwise the query continues to run till completion. If 
timeout values are " +
         "set for each statement via `java.sql.Statement.setQueryTimeout` and 
they are smaller " +
-        "than this configuration value, they take precedence.")
+        "than this configuration value, they take precedence. After set this 
config, you may be " +
+        "interesting in spark.sql.thriftServer.interruptOnCancel which can 
help interrupt task.")
       .version("3.1.0")
       .timeConf(TimeUnit.SECONDS)
       .createWithDefault(0L)
 
+  val THRIFTSERVER_FORCE_CANCEL =
+    buildConf("spark.sql.thriftServer.interruptOnCancel")
+      .doc("When true, all running tasks will be interrupted if one cancels a 
query. " +
+        "When false, all running tasks will be remained until finished.")

Review comment:
       Updated.




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

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