hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sp...@apache.org
Subject [03/50] [abbrv] hive git commit: HIVE-10581 fix comparison of String objects using == in Hive line 785
Date Wed, 20 May 2015 16:01:22 GMT
HIVE-10581 fix comparison of String objects using == in Hive line 785


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/500f298c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/500f298c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/500f298c

Branch: refs/heads/parquet
Commit: 500f298c8c14044c879fa19585cab7129d2a4e29
Parents: 5333bd3
Author: Alexander Pivovarov <apivovarov@gmail.com>
Authored: Sat May 2 22:31:15 2015 -0700
Committer: Alexander Pivovarov <apivovarov@gmail.com>
Committed: Tue May 12 16:21:46 2015 -0700

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/500f298c/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
index 39c48b5..1bb9b15 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
@@ -782,7 +782,7 @@ public class Hive {
       }
 
       org.apache.hadoop.hive.metastore.api.Table baseTbl = getTable(tableName).getTTable();
-      if (baseTbl.getTableType() == TableType.VIRTUAL_VIEW.toString()) {
+      if (TableType.VIRTUAL_VIEW.toString().equals(baseTbl.getTableType())) {
         throw new HiveException("tableName="+ tableName +" is a VIRTUAL VIEW. Index on VIRTUAL
VIEW is not supported.");
       }
       if (baseTbl.isTemporary()) {


Mime
View raw message