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

NullPointerException in HiveParser.g

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2.0
    • 1.3.0, 2.0.0
    • Query Planning
    • None

    Description

      In HiveParser.g:

      protected boolean useSQL11ReservedKeywordsForIdentifier() {
      return !HiveConf.getBoolVar(hiveConf, HiveConf.ConfVars.HIVE_SUPPORT_SQL11_RESERVED_KEYWORDS);
      }
      

      NullPointerException is thrown when hiveConf is not set.

      Stack trace:

      java.lang.NullPointerException
              at org.apache.hadoop.hive.conf.HiveConf.getBoolVar(HiveConf.java:2583)
              at org.apache.hadoop.hive.ql.parse.HiveParser.useSQL11ReservedKeywordsForIdentifier(HiveParser.java:1000)
              at org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.useSQL11ReservedKeywordsForIdentifier(HiveParser_IdentifiersParser.java:726)
              at org.apache.hadoop.hive.ql.parse.HiveParser_IdentifiersParser.identifier(HiveParser_IdentifiersParser.java:10922)
              at org.apache.hadoop.hive.ql.parse.HiveParser.identifier(HiveParser.java:45808)
              at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameType(HiveParser.java:38008)
              at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeList(HiveParser.java:36167)
              at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(HiveParser.java:5214)
              at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2640)
              at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1650)
              at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1109)
              at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202)
              at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
              at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:161)
      

      Attachments

        1. HIVE-10731.01.patch
          0.6 kB
          Pengcheng Xiong

        Activity

          People

            pxiong Pengcheng Xiong
            xguo27 Xiu Guo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: