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

    https://github.com/apache/carbondata/pull/2641#discussion_r210781860
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/datamap/CarbonDropDataMapCommand.scala
 ---
    @@ -160,9 +164,8 @@ case class CarbonDropDataMapCommand(
               } else if (!ifExistsSet) {
                 throw new NoSuchDataMapException(dataMapName, tableName)
               }
    -        } else if (mainTable != null &&
    -                   mainTable.getTableInfo.getDataMapSchemaList.size() == 
0) {
    -          dropDataMapFromSystemFolder(sparkSession)
    +        } else if (!ifExistsSet) {
    +          throw new NoSuchDataMapException(dataMapName)
    --- End diff --
    
    Is this case for preagg datamap?


---

Reply via email to