Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1610#discussion_r154836484
--- Diff:
integration/spark-common/src/main/scala/org/apache/carbondata/spark/util/CommonUtil.scala
---
@@ -877,4 +877,24 @@ object CommonUtil {
}
}
+ /**
+ * This function checks if any load or insert overwrite is in progress
before dropping that table
+ * @return
+ */
+ def checkLoadInProgressForTable(carbonTable: CarbonTable): Boolean = {
+ var canDropTable = true
--- End diff --
Rename the variable name to `loadInProgress` and initialize to `false`
---