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

Should be able to specify windowing spec without needing Between

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.11.0
    • Component/s: PTF-Windowing
    • Labels:
      None

      Description

      Currently user need to do following:

      select s, sum(b) over (distribute by i sort by si rows between unbounded preceding and current row) from over100k;
      

      but sql spec allows following as well:

      select s, sum(b) over (distribute by i sort by si rows unbounded preceding) from over100k;
      

      In such cases current row should be assumed implicitly.

        Attachments

        1. HIVE-4034.patch
          19 kB
          Ashutosh Chauhan

          Issue Links

            Activity

              People

              • Assignee:
                ashutoshc Ashutosh Chauhan
                Reporter:
                ashutoshc Ashutosh Chauhan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: