> Add dropTables method for optimizing drop table operation in test cases
> -----------------------------------------------------------------------
>
> Key: CARBONDATA-2072
> URL:
https://issues.apache.org/jira/browse/CARBONDATA-2072> Project: CarbonData
> Issue Type: Test
> Components: test
> Affects Versions: 1.3.0
> Reporter: xubo245
> Assignee: xubo245
> Priority: Minor
> Fix For: 1.4.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> There are many drop table in beforeAll or afterAll of test cases,like this:
> {code:java}
> override def afterAll {
> sql("drop table if exists load")
> sql("drop table if exists inser")
> sql("DROP TABLE IF EXISTS THive")
> sql("DROP TABLE IF EXISTS TCarbon")
> sql("drop table if exists TCarbonLocal")
> sql("drop table if exists TCarbonSource")
> sql("drop table if exists loadtable")
> sql("drop table if exists insertTable")
> sql("drop table if exists CarbonDest")
> sql("drop table if exists HiveDest")
> sql("drop table if exists CarbonOverwrite")
> sql("drop table if exists HiveOverwrite")
> sql("drop table if exists tcarbonsourceoverwrite")
> sql("drop table if exists carbon_table1")
> sql("drop table if exists carbon_table")
> sql("DROP TABLE IF EXISTS student")
> sql("DROP TABLE IF EXISTS uniqdata")
> sql("DROP TABLE IF EXISTS show_insert")
> sql("drop table if exists OverwriteTable_t1")
> sql("drop table if exists OverwriteTable_t2")
> }
> {code}
> in org.apache.carbondata.spark.testsuite.allqueries.InsertIntoCarbonTableTestCase
> It can be optimized by a public method in QueryTest