Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-38655

OffsetWindowFunctionFrameBase cannot find the offset row whose input is not null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0, 3.2.2
    • SQL

    Description

      select x, nth_value(x, 5) IGNORE NULLS over (order by x rows between unbounded preceding and current row)
      from (select explode(sequence(1, 3)) x)

      returns
      null
      null
      3

      But it should returns
      null
      null
      null

      Attachments

        Activity

          People

            beliefer Jiaan Geng
            beliefer Jiaan Geng
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: