mingkangli-db commented on code in PR #47374: URL: https://github.com/apache/spark/pull/47374#discussion_r1690176446
########## sql/core/src/main/scala/org/apache/spark/sql/execution/adaptive/QueryStageExec.scala: ########## @@ -154,14 +154,14 @@ abstract class QueryStageExec extends LeafExecNode { abstract class ExchangeQueryStageExec extends QueryStageExec { /** - * Cancel the stage materialization if in progress; otherwise do nothing. + * Cancel the stage materialization if in progress with an optional reason; otherwise do nothing. */ - final def cancel(): Unit = { + final def cancel(reason: Option[String]): Unit = { Review Comment: I don't think so, are you suggesting we can change the method signature to `reason: String` then? -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org