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

lag/lead using constant input values does not return the default value when the offset row does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • SQL

    Description

      Please see the attached notebook. Seems lag/lead somehow fail to recognize that a offset row does not exist and generate wrong results.

      Attachments

        1. window_function_bug.html
          37 kB
          Cheng Lian

        Activity

          People

            yhuai Yin Huai
            yhuai Yin Huai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: