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

    https://github.com/apache/carbondata/pull/2141#discussion_r181634921
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/schema/CarbonAlterTableRenameCommand.scala
 ---
    @@ -73,22 +73,27 @@ private[sql] case class CarbonAlterTableRenameCommand(
                        s"Table $oldDatabaseName.$oldTableName does not exist")
           throwMetadataException(oldDatabaseName, oldTableName, "Table does 
not exist")
         }
    +
    +    var carbonTable: CarbonTable = null
    +    carbonTable = metastore.lookupRelation(Some(oldDatabaseName), 
oldTableName)(sparkSession)
    --- End diff --
    
    This cannot be moved outside lock


---

Reply via email to