Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-7419

NullPointerException in SimplifyConditionalsRule

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • Impala 3.1.0
    • Impala 3.1.0
    • Frontend
    • None
    • ghx-label-1

    Description

      Found by the query generator:

      SELECT
      COALESCE((-311) * (NULL), MIN(DISTINCT tinyint_col), 42)
      FROM functional.alltypes
      
      java.lang.NullPointerException 
              at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187) 
              at org.apache.impala.analysis.FunctionCallExpr.isAggregateFunction(FunctionCallExpr.java:238) 
              at org.apache.impala.analysis.Expr$1.apply(Expr.java:100) 
              at org.apache.impala.analysis.Expr$1.apply(Expr.java:97) 
              at org.apache.impala.common.TreeNode.contains(TreeNode.java:162) 
              at org.apache.impala.rewrite.SimplifyConditionalsRule.apply(SimplifyConditionalsRule.java:84) 
              at org.apache.impala.rewrite.ExprRewriter.applyRuleBottomUp(ExprRewriter.java:85) 
              at org.apache.impala.rewrite.ExprRewriter.applyRuleRepeatedly(ExprRewriter.java:71) 
              at org.apache.impala.rewrite.ExprRewriter.rewrite(ExprRewriter.java:55) 
              at org.apache.impala.analysis.SelectList.rewriteExprs(SelectList.java:97) 
              at org.apache.impala.analysis.SelectStmt.rewriteExprs(SelectStmt.java:892) 
              at org.apache.impala.analysis.AnalysisContext.analyze(AnalysisContext.java:446) 
              at org.apache.impala.analysis.AnalysisContext.analyzeAndAuthorize(AnalysisContext.java:408) 
              at org.apache.impala.service.Frontend.createExecRequest(Frontend.java:1035) 
              at org.apache.impala.service.JniFrontend.createExecRequest(JniFrontend.java:165) 
      

      Attachments

        Issue Links

          Activity

            People

              twmarshall Thomas Tauber-Marshall
              twmarshall Thomas Tauber-Marshall
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: