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

NPE when hive.order.columnalignment is set to false

    XMLWordPrintableJSON

Details

    Description

      When hive.order.columnalignment is disabled and the plan contains an Aggregate operator, we hit a NPE.

       java.lang.NullPointerException
      	at org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTConverter.convert(ASTConverter.java:163)
      	at org.apache.hadoop.hive.ql.optimizer.calcite.translator.ASTConverter.convert(ASTConverter.java:111)
      	at org.apache.hadoop.hive.ql.parse.CalcitePlanner.getOptimizedAST(CalcitePlanner.java:1555)
      	at org.apache.hadoop.hive.ql.parse.CalcitePlanner.genOPTree(CalcitePlanner.java:483)
      	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:12630)
      	at org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:357)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:285)
      	at org.apache.hadoop.hive.ql.parse.ExplainSemanticAnalyzer.analyzeInternal(ExplainSemanticAnalyzer.java:175)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:285)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:522)
      	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1385)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1332)
      	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1327)
      	at org.apache.hadoop.hive.ql.reexec.ReExecDriver.compileAndRespond(ReExecDriver.java:124)
      	at org.apache.hadoop.hive.ql.reexec.ReExecDriver.run(ReExecDriver.java:217)
      	at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:242)
      ...
      

      Attachments

        1. HIVE-22232.patch
          15 kB
          jcamachorodriguez
        2. HIVE-22232.01.patch
          16 kB
          jcamachorodriguez
        3. HIVE-22232.01.patch
          16 kB
          jcamachorodriguez
        4. HIVE-22232.01.patch
          16 kB
          jcamachorodriguez

        Issue Links

          Activity

            People

              jcamacho Jesús Camacho Rodríguez
              jcamacho Jesús Camacho Rodríguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m