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

CBO failed due to NullPointerException in HiveAggregate.isBucketedInput()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 4.0.0
    • Component/s: CBO
    • Labels:
      None

      Description

      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 mq)

      public RelDistribution distribution(HiveJoin join, RelMetadataQuery mq)

       

      But in HiveAggregate.isBucketedInput, the argument passed to distribution is "this.getInput()"

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

        Attachments

        1. HIVE-19202.2.patch
          0.7 kB
          zhuwei
        2. HIVE-19202.1.patch
          0.7 kB
          zhuwei

          Activity

            People

            • Assignee:
              qunyan zhuwei
              Reporter:
              qunyan zhuwei
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: