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

remove support for lead/lag UDFs outside of UDAF args

    XMLWordPrintableJSON

Details

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

    Description

      Select Expressions such as
      p_size - lead(p_size,1)
      are currently handled as non aggregation expressions done after all over clauses are evaluated.
      Once we allow different partitions in a single select list(Jira 4041), these become ambiguous.

      • the equivalent way to do such things is either to use lead/lag UDAFs with expressions ( support added with Jira 4081)
      • stack windowing clauses with inline queries. select lead(r,1).. from (select rank() as r....)...

      Attachments

        1. HIVE-4126.D9105.1.patch
          20 kB
          Phabricator
        2. HIVE-4126.D9105.2.patch
          31 kB
          Phabricator

        Activity

          People

            rhbutani Harish Butani
            rhbutani Harish Butani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: