carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "xubo245 (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CARBONDATA-2072) Add dropTables method for optimizing drop table operation in test cases
Date Wed, 24 Jan 2018 02:00:01 GMT
xubo245 created CARBONDATA-2072:
-----------------------------------

             Summary: 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
             Fix For: 1.3.0


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




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message