Github user jackylk commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1711#discussion_r159035783
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonAlterTableCompactionCommand.scala
---
@@ -81,6 +84,13 @@ case class CarbonAlterTableCompactionCommand(
carbonLoadModel.setDatabaseName(table.getDatabaseName)
carbonLoadModel.setTablePath(table.getTablePath)
+ val isLoadInProgress =
SegmentStatusManager.checkIfAnyLoadInProgressForTable(table)
--- End diff --
why not do this check before line 78?
---