Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-27764 Feature Parity between PostgreSQL and Spark
  3. SPARK-33126

Simplify offset window function(Remove direction field)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.1.0
    • SQL
    • None

    Description

      The current Lead/Lag extends OffsetWindowFunction. OffsetWindowFunction contains field direction and use direction to calculate the boundary.
      We can use single literal expression unify the two properties.
      For example:
      3 means direction is Asc and boundary is 3.
      -3 means direction is Desc and boundary is -3.

      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: