Github user xubo245 commented on the issue:
https://github.com/apache/carbondata/pull/1848
sql(s"drop datamap if exists agg1 on table mainTable") not support,
Carbon support sql(s"drop datamap if exists agg1_year on table
mainTable").---
