You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by sp...@apache.org on 2018/10/01 15:40:43 UTC

hive git commit: HIVE-10296: Cast exception observed when hive runs a multi join query on metastore (postgres), since postgres pushes the filter into the join, and ignores the condition before applying cast (Karthik Manamcheri, reviewed by Sergey Shelukh

Repository: hive
Updated Branches:
  refs/heads/master 2ad65f7e3 -> c05733e3d


HIVE-10296: Cast exception observed when hive runs a multi join query on metastore (postgres), since postgres pushes the filter into the join, and ignores the condition before applying cast (Karthik Manamcheri, reviewed by Sergey Shelukhin)


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

Branch: refs/heads/master
Commit: c05733e3d624de79803cd155128cd9d6b573caf2
Parents: 2ad65f7
Author: Sergio Pena <se...@cloudera.com>
Authored: Mon Oct 1 10:39:41 2018 -0500
Committer: Sergio Pena <se...@cloudera.com>
Committed: Mon Oct 1 10:39:41 2018 -0500

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hive/metastore/DatabaseProduct.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/c05733e3/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java
----------------------------------------------------------------------
diff --git a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java
index 0b3504d..3e56ad5 100644
--- a/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java
+++ b/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/DatabaseProduct.java
@@ -70,6 +70,6 @@ public enum DatabaseProduct {
    * Whether the RDBMS has a bug in join and filter operation order described in DERBY-6358.
    */
   public static boolean hasJoinOperationOrderBug(DatabaseProduct dbType) {
-    return dbType == DERBY || dbType == ORACLE;
+    return dbType == DERBY || dbType == ORACLE || dbType == POSTGRES;
   }
 }