Zhangshunyu commented on a change in pull request #3947:
URL: https://github.com/apache/carbondata/pull/3947#discussion_r495538495



##########
File path: 
integration/spark/src/main/scala/org/apache/spark/sql/execution/command/table/CarbonDropTableCommand.scala
##########
@@ -82,8 +82,9 @@ case class CarbonDropTableCommand(
         }
       }
 
-      if (SegmentStatusManager.isLoadInProgressInTable(carbonTable)) {
-        throw new ConcurrentOperationException(carbonTable, "loading", "drop 
table")
+      if (SegmentStatusManager.isInsertInProgress(carbonTable)) {
+        throw new ConcurrentOperationException(carbonTable,
+          "insert or insert overwrite", "drop table")

Review comment:
       the load dml also comes to this code,  for example if user is running 
"load data inpath XXX into YYY ..." a drop table command comes, he will get the 
exceptiont which telling 'the table is in insert or insert overwrite'




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to