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

Incorrect column mappings with over clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • PTF-Windowing
    • None

    Description

      Following query generates 3 MR job and fails in reducer initialization phase of third job.

      select ts, dec, rnk
      from
        (select ts, dec,
                rank() over (partition by ts order by item_total desc)  as rnk
                from
                  (select other.ts, other.dec, sum(other.i) as item_total
                   from over10k other
                   join over10k on (other.b = over10k.b)
                   group by other.ts, other.dec
                  ) item_sales
        ) item_rank
      where rnk <=  3;
      

      Attachments

        Activity

          People

            ashutoshc Ashutosh Chauhan
            ashutoshc Ashutosh Chauhan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: