beliefer opened a new pull request, #43507:
URL: https://github.com/apache/spark/pull/43507

   ### What changes were proposed in this pull request?
   Currently, the implementation of 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 {
           ...
         }
       }
     }
   ```
   This PR want unify the prepare framework for `OffsetWindowFunctionFrame`
   
   ### Why are the changes needed?
   Unify the prepare framework for `OffsetWindowFunctionFrame`
   
   
   ### Does this PR introduce _any_ user-facing change?
   'No'.
   Inner update.
   
   
   ### How was this patch tested?
   Exists test cases.
   
   
   ### Was this patch authored or co-authored using generative AI tooling?
   'No'.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to