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

    https://github.com/apache/carbondata/pull/1861#discussion_r165046584
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/datamap/CarbonCreateDataMapCommand.scala
 ---
    @@ -49,10 +61,21 @@ case class CarbonCreateDataMapCommand(
           throw new MalformedCarbonCommandException("Streaming table does not 
support creating datamap")
         }
         val LOGGER = 
LogServiceFactory.getLogService(this.getClass.getCanonicalName)
    +    val dbName = tableIdentifier.database.getOrElse("default")
    +    val tableName = tableIdentifier.table + "_" + dataMapName
     
    -    if (dmClassName.equalsIgnoreCase(PREAGGREGATE.toString) ||
    +    if (tableExists(sparkSession, dbName, tableName)) {
    --- End diff --
    
    ok,done


---

Reply via email to