Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E7601744C for ; Wed, 22 Oct 2014 00:03:15 +0000 (UTC) Received: (qmail 45620 invoked by uid 500); 22 Oct 2014 00:03:15 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 45578 invoked by uid 500); 22 Oct 2014 00:03:15 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 45564 invoked by uid 99); 22 Oct 2014 00:03:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2014 00:03:15 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2014 00:02:53 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id DA68823888FE; Wed, 22 Oct 2014 00:02:51 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@hive.apache.org From: jdere@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141022000251.DA68823888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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;