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

StatsOptimizer throws ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • Logical Optimizer
    • None

    Description

      mvn test -Dtest=TestCliDriver -Dtest.output.overwrite=true -Dqfile=cbo_rp_udf_udaf.q -Dhive.compute.query.using.stats=true repros the issue.

      In StatsOptimizer with return path on, we may have aggr($f0), aggr($f1) in GBY
      and then select aggr($f1), aggr($f0) in SEL.
      Thus we need to use colExp to find out which position is
      corresponding to which position.

      Attachments

        1. HIVE-13333.01.patch
          11 kB
          Pengcheng Xiong
        2. HIVE-13333.02.patch
          12 kB
          Pengcheng Xiong
        3. HIVE-13333.03.patch
          12 kB
          Pengcheng Xiong

        Issue Links

          Activity

            People

              pxiong Pengcheng Xiong
              ashutoshc Ashutosh Chauhan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: