zhuwei created HIVE-19202:

             Summary: CBO failed due to NullPointerException in 
                 Key: HIVE-19202
                 URL: https://issues.apache.org/jira/browse/HIVE-19202
             Project: Hive
          Issue Type: Bug
            Reporter: zhuwei
            Assignee: zhuwei

I ran a query with join and group by with below settings, COB failed due to 
NullPointerException in HiveAggregate.isBucketedInput()

set hive.execution.engine=tez;

set hive.cbo.costmodel.extended=true;


In class HiveRelMdDistribution, we implemented below functions:

public RelDistribution distribution(HiveAggregate aggregate, RelMetadataQuery 

public RelDistribution distribution(HiveJoin join, RelMetadataQuery mq)


But in HiveAggregate.isBucketedInput, the argument passed to distribution is 

, obviously it's not right here. The right argument needed is "this"

This message was sent by Atlassian JIRA

Reply via email to