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

Create a view based on another view throws an exception “FAILED: NullPointerException null”

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Patch Available
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.1
    • Fix Version/s: None
    • Component/s: Views
    • Labels:
      None
    • Environment:

      hive2.1.0

    • Release Note:
      In the analyzeInternal method of the SemanticAnalyzer class, call setColumnAccessInfo method to get column information.

      Description

      when I create a new view based on another view I an exception “FAILED: NullPointerException null”:

      hive> create view view2(a,b) as select a, b from view1; //view1 is another view
      FAILED: NullPointerException null
      hive>

      The hive log show error stack:
      2017-02-15T15:40:25,816 ERROR ql.Driver (SessionState.java:printError(1116)) - FAILED: NullPointerException null
      java.lang.NullPointerException
      at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:863)
      at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:552)
      at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1319)
      at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1459)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1239)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1229)
      at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:233)
      at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:184)
      at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403)
      at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:821)
      at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:759)
      at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:686)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:136)

        Attachments

        1. 0001-Hive-15911.patch
          2 kB
          yangfang

          Activity

            People

            • Assignee:
              yangfang yangfang
              Reporter:
              yangfang yangfang
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: