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

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0
    • Fix Version/s: 3.1.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              beliefer jiaan.geng
              Reporter:
              beliefer jiaan.geng
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: