akashrn5 commented on a change in pull request #3216: [CARBONDATA-3387] Support 
Partition with MV datamap & Show DataMap Status
URL: https://github.com/apache/carbondata/pull/3216#discussion_r285890073
 
 

 ##########
 File path: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/datamap/CarbonCreateDataMapCommand.scala
 ##########
 @@ -101,6 +101,28 @@ case class CarbonCreateDataMapCommand(
         s" with provider ${dataMapSchema.getProviderName}")
     }
 
+    if (null != mainTable) {
+      if (mainTable.isChildTable || mainTable.isChildDataMap) {
+        throw new MalformedDataMapCommandException(
+          "Cannot create DataMap on child table " + mainTable.getDatabaseName 
+ "." +
 
 Review comment:
   use getuniqname

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to