Github user ravipesala commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1476#discussion_r149909553
--- Diff:
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/schema/AlterTableRenameTableCommand.scala
---
@@ -82,6 +82,14 @@ private[sql] case class AlterTableRenameTableCommand(
val tableMeta = metastore.lookupRelation(Some(oldDatabaseName),
oldTableName)(sparkSession)
.asInstanceOf[CarbonRelation].tableMeta
carbonTable = tableMeta.carbonTable
+ if (carbonTable.isPreAggregateTable) {
--- End diff --
We can rename the parents of all child tables, we can support this
operation.
---