hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1655488 - in /hive/branches/branch-1.1: ./ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java
Date Wed, 28 Jan 2015 22:37:50 GMT
Author: brock
Date: Wed Jan 28 22:37:50 2015
New Revision: 1655488

URL: http://svn.apache.org/r1655488
Log:
Merge HIVE-9475 - HiveMetastoreClient.tableExists does not work

Modified:
    hive/branches/branch-1.1/   (props changed)
    hive/branches/branch-1.1/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
    hive/branches/branch-1.1/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java

Propchange: hive/branches/branch-1.1/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Wed Jan 28 22:37:50 2015
@@ -3,3 +3,4 @@
 /hive/branches/spark:1608589-1654414
 /hive/branches/tez:1494760-1622766
 /hive/branches/vectorization:1466908-1527856
+/hive/trunk:1655202

Modified: hive/branches/branch-1.1/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-1.1/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java?rev=1655488&r1=1655487&r2=1655488&view=diff
==============================================================================
--- hive/branches/branch-1.1/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
(original)
+++ hive/branches/branch-1.1/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
Wed Jan 28 22:37:50 2015
@@ -1208,7 +1208,7 @@ public class HiveMetaStoreClient impleme
   public boolean tableExists(String databaseName, String tableName) throws MetaException,
       TException, UnknownDBException {
     try {
-      return filterHook.filterTable(client.get_table(databaseName, tableName)) == null;
+      return filterHook.filterTable(client.get_table(databaseName, tableName)) != null;
     } catch (NoSuchObjectException e) {
       return false;
     }

Modified: hive/branches/branch-1.1/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-1.1/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java?rev=1655488&r1=1655487&r2=1655488&view=diff
==============================================================================
--- hive/branches/branch-1.1/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java
(original)
+++ hive/branches/branch-1.1/metastore/src/test/org/apache/hadoop/hive/metastore/TestHiveMetaStorePartitionSpecs.java
Wed Jan 28 22:37:50 2015
@@ -143,6 +143,8 @@ public class TestHiveMetaStorePartitionS
     Table table = new Table(tableName, dbName, "", 0, 0, 0, storageDescriptor, partColumns,
tableParameters, "", "", "");
 
     hmsc.createTable(table);
+    Assert.assertTrue("Table " + dbName + "." + tableName + " does not exist",
+      hmsc.tableExists(dbName, tableName));
 
   }
 



Mime
View raw message