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

Unify the prepare framework for `OffsetWindowFunctionFrame`

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • None
    • SQL

    Description

      Currently, the implementation the `prepare` of all the `OffsetWindowFunctionFrame` have the same code logic show below.
      ```
      override def prepare(rows: ExternalAppendOnlyUnsafeRowArray): Unit = {
      if (offset > rows.length)

      { fillDefaultValue(EmptyRow) }

      else {
      resetStates(rows)
      if (ignoreNulls)

      { ... } else { ... }

      }
      }
      ```

      Attachments

        1. test_table.parquet.zip
          1.70 MB
          Wenchen Fan

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: