impala-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brown (JIRA)" <>
Subject [jira] [Created] (IMPALA-5206) NPE on "optimized" expression containing an aggregation
Date Thu, 13 Apr 2017 21:54:42 GMT
Michael Brown created IMPALA-5206:

             Summary: NPE on "optimized" expression containing an aggregation
                 Key: IMPALA-5206
             Project: IMPALA
          Issue Type: Bug
          Components: Frontend
    Affects Versions: Impala 2.9.0
            Reporter: Michael Brown
            Assignee: Thomas Tauber-Marshall
            Priority: Critical

This seems similar to IMPALA-5125, but in this bug, we hit a Java NPE and error, not a DCHECK,
so I think it's important to file this separately for now, since some path is different.


SELECT IF(false, AVG(id), -1)
FROM functional.alltypestiny;

I0413 14:32:19.962172  9649] java.lang.NullPointerException
        at org.apache.impala.analysis.Analyzer.getEquivClasses(
        at org.apache.impala.analysis.Analyzer.createEquivConjuncts(
        at org.apache.impala.planner.AggregationNode.init(
        at org.apache.impala.planner.SingleNodePlanner.createAggregationPlan(
        at org.apache.impala.planner.SingleNodePlanner.createSelectPlan(
        at org.apache.impala.planner.SingleNodePlanner.createQueryPlan(
        at org.apache.impala.planner.SingleNodePlanner.createSingleNodePlan(
        at org.apache.impala.planner.Planner.createPlan(
        at org.apache.impala.service.Frontend.createExecRequest(
        at org.apache.impala.service.Frontend.createExecRequest(
        at org.apache.impala.service.JniFrontend.createExecRequest(

Just like with IMPALA-5125, using {{set enable_expr_rewrites=false}} is a workaround. Just
like with IMPALA-5125, including {{GROUP BY}} looks OK.

[~twmarshall] can you take the first look? I'm going under the assumption that this is a dupe
of IMPALA-5125 based on RCA, or at least meta-similar. Again, though, different effect (no
crash) means at least initially a separate bug. Thanks.

This message was sent by Atlassian JIRA

View raw message