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

    https://github.com/apache/carbondata/pull/2640#discussion_r210930478
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/datamap/CarbonDataMapRebuildCommand.scala
 ---
    @@ -41,8 +41,12 @@ case class CarbonDataMapRebuildCommand(
           .asScala
           .find(p => p.getDataMapName.equalsIgnoreCase(dataMapName))
         if (schemaOption.isEmpty) {
    -      throw new MalformedDataMapCommandException(
    -        s"Datamap with name $dataMapName does not exist on table 
${tableIdentifier.get.table}")
    +      var errorMsg = s"Datamap with name $dataMapName does not exist on 
any table"
    --- End diff --
    
    move this to else block


---

Reply via email to