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

OVER clauses with ORDER BY not getting windowing set properly

    XMLWordPrintableJSON

Details

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

    Description

      Given a query like:

      select s, avg(f) over (partition by si order by d) from over100k;

      Hive is not setting the window frame properly. The order by creates an implicit window frame of 'unbounded preceding' but Hive is treating the above query as if it has no window.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gates Alan Gates
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: