hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xu...@apache.org
Subject hive git commit: HIVE-13101: NullPointerException in HiveLexer.g (Sandeep via Xuefu)
Date Wed, 24 Feb 2016 23:50:51 GMT
Repository: hive
Updated Branches:
  refs/heads/master bc4dcf376 -> e9b734852


HIVE-13101: NullPointerException in HiveLexer.g (Sandeep via Xuefu)


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

Branch: refs/heads/master
Commit: e9b73485281730abf73b35d9029000edd42fa35c
Parents: bc4dcf3
Author: Xuefu Zhang <xzhang@Cloudera.com>
Authored: Wed Feb 24 15:50:47 2016 -0800
Committer: Xuefu Zhang <xzhang@Cloudera.com>
Committed: Wed Feb 24 15:50:47 2016 -0800

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/e9b73485/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
index 4c4470b..3f92d16 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
+++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g
@@ -31,6 +31,9 @@ import org.apache.hadoop.hive.conf.HiveConf;
   }
   
   protected boolean allowQuotedId() {
+    if(hiveConf == null){
+      return false;
+    }
     String supportedQIds = HiveConf.getVar(hiveConf, HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT);
     return !"none".equals(supportedQIds);
   }


Mime
View raw message