Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-5477

Incorrect results with lead/lag over windows with duplicates

    XMLWordPrintable

Details

    Description

      LEAD/LAG should be computed as row values functions, rather than over a range.

      for example:

      select e1, lead(e1, 2) over (order by e1 nulls last) from pm1.g1

      returns three rows of ('a', 'c') - rather than the expected ('a', 'a'), ('a', 'b'), ('a', 'c')

      Attachments

        Activity

          People

            rhn-engineering-shawkins Steven Hawkins
            rhn-engineering-shawkins Steven Hawkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: