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_r285885165
##########
File path: datamap/mv/core/src/main/scala/org/apache/carbondata/mv/datamap/MVHelper.scala
##########
@@ -97,6 +98,14 @@ object MVHelper {
throw new MalformedCarbonCommandException(
s"Non-Carbon table does not support creating MV datamap")
}
+ if (!mainCarbonTable.get.getTableInfo.isTransactionalTable) {
+ throw new MalformedCarbonCommandException("Unsupported operation on NonTransactional table")
+ }
+ if (mainCarbonTable.get.isChildTable || mainCarbonTable.get.isChildDataMap) {
+ throw new MalformedCarbonCommandException(
+ "Cannot create Datamap on child table " + mainCarbonTable.get.getDatabaseName + "." +
+ mainCarbonTable.get.getTableName)
Review comment:
can directly call getunique name
----------------------------------------------------------------
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:
[hidden email]
With regards,
Apache Git Services