Skip to content
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

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

PHILO-HE
Copy link
Contributor

@PHILO-HE PHILO-HE commented Mar 19, 2024

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 to lead(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.

Copy link

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?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

Copy link

Run Gluten Clickhouse CI

@PHILO-HE PHILO-HE force-pushed the fix-lead-lag-minus-offset branch from c776eb6 to c616442 Compare March 19, 2024 14:43
Copy link

Run Gluten Clickhouse CI

@PHILO-HE PHILO-HE marked this pull request as ready for review March 20, 2024 01:04
Copy link

Run Gluten Clickhouse CI

@PHILO-HE PHILO-HE force-pushed the fix-lead-lag-minus-offset branch from bbaecbd to 7cecd46 Compare March 20, 2024 02:23
Copy link

Run Gluten Clickhouse CI

@PHILO-HE
Copy link
Contributor Author

@ulysses-you, could you please review this pr? Thanks!

@PHILO-HE PHILO-HE force-pushed the fix-lead-lag-minus-offset branch from 7cecd46 to 84f9d7d Compare March 20, 2024 07:18
Copy link

Run Gluten Clickhouse CI

Copy link
Contributor

@ulysses-you ulysses-you left a 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

@PHILO-HE PHILO-HE merged commit 70ceb50 into apache:main Mar 20, 2024
20 of 21 checks passed
WangGuangxin pushed a commit to WangGuangxin/gluten that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants