-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VL] Support lead/lag window function with negative input offset #5026
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/apache/incubator-gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
c776eb6
to
c616442
Compare
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
bbaecbd
to
7cecd46
Compare
Run Gluten Clickhouse CI |
@ulysses-you, could you please review this pr? Thanks! |
7cecd46
to
84f9d7d
Compare
Run Gluten Clickhouse CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you @PHILO-HE
What changes were proposed in this pull request?
Spark lead/lag window functions are quite similar. One can be converted to the other by simply putting a minus for offset. For example,
lag(c1, -1)
can be converted tolead(c1, 1)
. Since Velox doesn't support negative offset, we can just do a conversion to meet velox's requirement.How was this patch tested?
Existing Spark UTs and a new added test.