You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by vg...@apache.org on 2019/02/12 19:35:42 UTC

[hive] branch master updated: HIVE-21238: Fix Surrogate Key issue (Miklos Gergely reviewed by Vineet Garg)

This is an automated email from the ASF dual-hosted git repository.

vgarg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 793f192  HIVE-21238: Fix Surrogate Key issue (Miklos Gergely reviewed by Vineet Garg)
793f192 is described below

commit 793f192de238874d32d4c2f5137e97ebf048cc70
Author: Miklos Gergely <mg...@hortonworks.com>
AuthorDate: Tue Feb 12 11:34:08 2019 -0800

    HIVE-21238: Fix Surrogate Key issue (Miklos Gergely reviewed by Vineet Garg)
---
 ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
index 0d0196e..f2ba1ad 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
@@ -7957,6 +7957,10 @@ public class SemanticAnalyzer extends BaseSemanticAnalyzer {
         }
       }
     }
+
+    for (Operator<? extends OperatorDesc> parent : (List<Operator<? extends OperatorDesc>>)input.getParentOperators()) {
+      setWriteIdForSurrogateKeys(ltd, parent);
+    }
   }
 
   private WriteEntity generateTableWriteEntity(String dest, Table dest_tab,