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


   ### What changes were proposed in this pull request?
   The current `Lead`/`Lag` extends `OffsetWindowFunction`. 
`OffsetWindowFunction` contains field `direction` and use `direction` to 
calculates 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.
   
   
   ### Why are the changes needed?
   Improve the current implement of `Lead`/`Lag`.
   
   
   ### Does this PR introduce _any_ user-facing change?
    'No'.
   
   
   ### How was this patch tested?
   Jenkins test.
   


----------------------------------------------------------------
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.

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