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

Incorrect results with lead/lag over windows with duplicates

    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')

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                shawkins Steven Hawkins
                Reporter:
                shawkins Steven Hawkins
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: