Is there any way to stop or pause an already running optmize on delta table started using
val deltaTable = DeltaTable.forPath(spark, deltaTablePath)
deltaTable.optimize().executeCompaction()
Is there any way to stop or pause an already running optmize on delta table started using
val deltaTable = DeltaTable.forPath(spark, deltaTablePath)
deltaTable.optimize().executeCompaction()
Share
Improve this question
asked Jan 29 at 8:27
Shailendra KirtikarShailendra Kirtikar
474 bronze badges
1 Answer
Reset to default 0To stop or pause a running OPTIMIZE operation on a Delta table (started via executeCompaction()), there is no direct API in Delta Lake 2.x or earlier. If the OPTIMIZE is running as a Spark job, you can kill the associated Spark job.