Repository: hive
Updated Branches:
  refs/heads/master ff2554328 -> 6b8ddbfcc


HIVE-20409: Hive ACID: Update/delete/merge does not clean hdfs staging 
directory (Rajkumar Singh, reviewed by Vineet Garg)


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

Branch: refs/heads/master
Commit: 6b8ddbfcc8df1867f921ad467ee3c6d3c5c605d7
Parents: ff25543
Author: Rajkumar Singh <rajkumar.si...@hortonworks.com>
Authored: Wed Aug 22 11:26:47 2018 -0700
Committer: Vineet Garg <vg...@apache.org>
Committed: Wed Aug 22 11:28:11 2018 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/6b8ddbfc/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java
----------------------------------------------------------------------
diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java 
b/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java
index e7a33f5..e8823e1 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/parse/UpdateDeleteSemanticAnalyzer.java
@@ -545,6 +545,7 @@ public class UpdateDeleteSemanticAnalyzer extends 
SemanticAnalyzer {
     Context rewrittenCtx;
     try {
       rewrittenCtx = new Context(conf);
+      rewrittenCtx.setHDFSCleanup(true);
       // We keep track of all the contexts that are created by this query
       // so we can clear them when we finish execution
       ctx.addRewrittenStatementContext(rewrittenCtx);

Reply via email to