Github user mohammadshahidkhan commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1418#discussion_r150442218
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/schema/CarbonAlterTableRenameCommand.scala
---
@@ -93,6 +96,22 @@ private[sql] case class CarbonAlterTableRenameCommand(
timeStamp = System.currentTimeMillis()
schemaEvolutionEntry.setTime_stamp(timeStamp)
renameBadRecords(oldTableName, newTableName, oldDatabaseName)
+
--- End diff --
if hive and carbon both the tables points to the same location, and we do
folder rename first then then hive alter command will fail.
---