hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ekoif...@apache.org
Subject hive git commit: HIVE-12890 Disable multi-statment transaction control statements until HIVE-11078 (Eugene Koifman, reviewed by Sergey Shelukhin)
Date Wed, 20 Jan 2016 23:40:05 GMT
Repository: hive
Updated Branches:
  refs/heads/master 64ab5aba9 -> a9f370160


HIVE-12890 Disable multi-statment transaction control statements until HIVE-11078 (Eugene
Koifman, 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/a9f37016
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/a9f37016
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/a9f37016

Branch: refs/heads/master
Commit: a9f3701607ad1a21718837873e2a3b9da891c00b
Parents: 64ab5ab
Author: Eugene Koifman <ekoifman@hortonworks.com>
Authored: Wed Jan 20 15:40:02 2016 -0800
Committer: Eugene Koifman <ekoifman@hortonworks.com>
Committed: Wed Jan 20 15:40:02 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/a9f37016/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
----------------------------------------------------------------------
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 15773e5..8c003d7 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
@@ -10026,6 +10026,10 @@ public class SemanticAnalyzer extends BaseSemanticAnalyzer {
       case HiveParser.TOK_START_TRANSACTION:
       case HiveParser.TOK_COMMIT:
       case HiveParser.TOK_ROLLBACK:
+        if(!(conf.getBoolVar(ConfVars.HIVE_IN_TEST) || conf.getBoolVar(ConfVars.HIVE_IN_TEZ_TEST)))
{
+          throw new IllegalStateException(SemanticAnalyzerFactory.getOperation(ast.getToken().getType())
+
+            " is not supported yet.");
+        }
         SessionState.get().setCommandType(SemanticAnalyzerFactory.getOperation(ast.getToken().getType()));
         return false;
     }


Mime
View raw message