Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1610#discussion_r155258692
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/schema/CarbonAlterTableRenameCommand.scala
 ---
    @@ -83,6 +85,11 @@ private[sql] case class CarbonAlterTableRenameCommand(
               sparkSession)
           carbonTable = metastore.lookupRelation(Some(oldDatabaseName), 
oldTableName)(sparkSession)
             .asInstanceOf[CarbonRelation].carbonTable
    +      // if any load is in progress for table, do not allow rename table
    +      if 
(SegmentStatusManager.checkIfAnyLoadInProgressForTable(carbonTable)) {
    +        throw new AnalysisException(s"alter rename failed, load, insert or 
insert " +
    --- End diff --
    
    @jackylk yes, we have identified drop, alter,and delete segment commands 
which are impacted, so we need to add restriction to them.


---

Reply via email to