dongjoon-hyun commented on a change in pull request #23732: [SPARK-26389][SS]
Add force delete temp checkpoint configuration
URL: https://github.com/apache/spark/pull/23732#discussion_r254786897
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/StreamExecution.scala
##########
@@ -335,10 +337,13 @@ abstract class StreamExecution(
postEvent(
new QueryTerminatedEvent(id, runId,
exception.map(_.cause).map(Utils.exceptionString)))
- // Delete the temp checkpoint only when the query didn't fail
- if (deleteCheckpointOnStop && exception.isEmpty) {
+ // Delete the temp checkpoint when either force delete enabled or the
query didn't fail
+ if (deleteCheckpointOnStop &&
+
(sparkSession.sessionState.conf.getConf(SQLConf.FORCE_DELETE_TEMP_CHECKPOINT_LOCATION)
||
Review comment:
Sorry for nit-picking. Indentation?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]