diff --git a/ql/src/test/org/apache/hadoop/hive/ql/parse/TestQBCompact.java b/ql/src/test/org/apache/hadoop/hive/ql/parse/TestQBCompact.java index d7828fc..1080428 100644 --- a/ql/src/test/org/apache/hadoop/hive/ql/parse/TestQBCompact.java +++ b/ql/src/test/org/apache/hadoop/hive/ql/parse/TestQBCompact.java @@ -32,6 +32,7 @@ import org.apache.hadoop.hive.ql.plan.DDLWork; import org.apache.hadoop.hive.ql.session.SessionState; import org.junit.BeforeClass; +import org.junit.AfterClass; import org.junit.Test; import java.io.Serializable; @@ -69,6 +70,13 @@ public static void init() throws Exception { h.createPartition(t, partSpec); } + @AfterClass + public static void deInit() throws Exception { + Hive h = Hive.get(conf); + Table t = h.getTable("foo"); + h.dropTable("foo"); + } + private AlterTableSimpleDesc parseAndAnalyze(String query) throws Exception { ParseDriver hd = new ParseDriver(); ASTNode head = (ASTNode)hd.parse(query).getChild(0);