hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jd...@apache.org
Subject svn commit: r1633491 - in /hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql: parse/TestColumnAccess.java plan/TestReadEntityDirect.java
Date Wed, 22 Oct 2014 00:02:51 GMT
Author: jdere
Date: Wed Oct 22 00:02:51 2014
New Revision: 1633491

URL: http://svn.apache.org/r1633491
Log:
HIVE-8445: TestColumnAccess, TestReadEntityDirect use same table names (Jason Dere, reviewed
by Vaibhav Gumashta)

Modified:
    hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/parse/TestColumnAccess.java
    hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java

Modified: hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/parse/TestColumnAccess.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/parse/TestColumnAccess.java?rev=1633491&r1=1633490&r2=1633491&view=diff
==============================================================================
--- hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/parse/TestColumnAccess.java
(original)
+++ hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/parse/TestColumnAccess.java
Wed Oct 22 00:02:51 2014
@@ -31,6 +31,7 @@ import org.apache.hadoop.hive.ql.Driver;
 import org.apache.hadoop.hive.ql.QueryPlan;
 import org.apache.hadoop.hive.ql.hooks.ReadEntity;
 import org.apache.hadoop.hive.ql.session.SessionState;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 
@@ -47,6 +48,14 @@ public class TestColumnAccess {
     Assert.assertEquals("Checking command success", 0, ret);
   }
 
+  @AfterClass
+  public static void Teardown() throws Exception {
+    Driver driver = createDriver();
+    driver.run("drop table t1");
+    driver.run("drop table t2");
+    driver.run("drop view v1");
+  }
+
   @Test
   public void testQueryTable1() throws ParseException {
     String query = "select * from t1";

Modified: hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java?rev=1633491&r1=1633490&r2=1633491&view=diff
==============================================================================
--- hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java
(original)
+++ hive/branches/branch-0.14/ql/src/test/org/apache/hadoop/hive/ql/plan/TestReadEntityDirect.java
Wed Oct 22 00:02:51 2014
@@ -38,6 +38,7 @@ import org.apache.hadoop.hive.ql.parse.S
 import org.apache.hadoop.hive.ql.session.SessionState;
 import org.junit.Before;
 import org.junit.BeforeClass;
+import org.junit.AfterClass;
 import org.junit.Test;
 
 /**
@@ -56,6 +57,13 @@ public class TestReadEntityDirect {
     assertEquals("Checking command success", 0, ret);
   }
 
+  @AfterClass
+  public static void onetimeTeardown() throws Exception {
+    Driver driver = createDriver();
+    driver.run("drop table t1");
+    driver.run("drop view v1");
+  }
+
   @Before
   public void setup() {
     CheckInputReadEntityDirect.readEntities = null;



Mime
View raw message