carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] carbondata pull request #1610: [CARBONDATA-1789][CARBONDATA-1791]do not drop...
Date Wed, 06 Dec 2017 14:55:43 GMT
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.


---

Mime
View raw message