Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.2.0
    • None
    • SQL
    • None

    Description

      The current implement of `last_value` over unbounded window frame will execute `updateExpressions` multiple times.
      In fact, `last_value` only execute `updateExpressions` once on the last row.

      Attachments

        Activity

          apachespark Apache Spark added a comment -

          User 'beliefer' has created a pull request for this issue:
          https://github.com/apache/spark/pull/31356

          apachespark Apache Spark added a comment - User 'beliefer' has created a pull request for this issue: https://github.com/apache/spark/pull/31356
          apachespark Apache Spark added a comment -

          User 'beliefer' has created a pull request for this issue:
          https://github.com/apache/spark/pull/31356

          apachespark Apache Spark added a comment - User 'beliefer' has created a pull request for this issue: https://github.com/apache/spark/pull/31356
          beliefer Jiaan Geng added a comment -

          Because it's not worth do the optimization for last_value only.
          We suspend this work.

          beliefer Jiaan Geng added a comment - Because it's not worth do the optimization for last_value only. We suspend this work.

          People

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

            Dates

              Created:
              Updated:
              Resolved: