Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13101

NullPointerException in HiveLexer.g

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Query Planning
    • None

    Description

      In HiveLexer.g:

        protected boolean allowQuotedId() {
          String supportedQIds = HiveConf.getVar(hiveConf, HiveConf.ConfVars.HIVE_QUOTEDID_SUPPORT);
          return !"none".equals(supportedQIds);
        }
      

      NullPointerException is thrown when hiveConf is not set.

      Stack trace:

      java.lang.NullPointerException
      	at org.apache.hadoop.hive.conf.HiveConf.getVar(HiveConf.java:3142) ~[hive-exec-2.0.0.jar:2.0.0]
      	at org.apache.hadoop.hive.ql.parse.HiveLexer.allowQuotedId(HiveLexer.java:360) ~[hive-exec-2.0.0.jar:2.0.0]
      	at org.apache.hadoop.hive.ql.parse.HiveLexer$DFA21.specialStateTransition(HiveLexer.java:11522) ~[hive-exec-2.0.0.jar:2.0.0]
      	at org.antlr.runtime.DFA.predict(DFA.java:80) ~[antlr-runtime-3.5.1.jar:3.5.1]
      	at org.apache.hadoop.hive.ql.parse.HiveLexer.mIdentifier(HiveLexer.java:8357) ~[hive-exec-2.0.0.jar:2.0.0]
      	at org.apache.hadoop.hive.ql.parse.HiveLexer.mTokens(HiveLexer.java:11395) ~[hive-exec-2.0.0.jar:2.0.0]
      	at org.antlr.runtime.Lexer.nextToken(Lexer.java:85) ~[antlr-runtime-3.5.1.jar:3.5.1]
      

      Attachments

        1. HIVE-13101.1.patch
          0.6 kB
          sandeep akinapelli

        Issue Links

          Activity

            People

              sakinapelli sandeep akinapelli
              sakinapelli sandeep akinapelli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: