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

Add support for bounded execution when window query involves UNBOUNDED PRECEDING #4978

Closed
mustafasrepo opened this issue Jan 19, 2023 · 0 comments · Fixed by #5003
Closed
Labels
enhancement New feature or request

Comments

@mustafasrepo
Copy link
Contributor

mustafasrepo commented Jan 19, 2023

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Currently, the query below

SELECT
    SUM(c1) OVER (ORDER BY c3 RANGE BETWEEN UNBOUNDED PRECEDING AND 11 FOLLOWING) as a1
    FROM aggregate_test_100

works with WindowAggExec. However, since starting point of above range is always the beginning of the table and most of the aggregators can calculate their result without seeing the whole range at once; we should be able to run above query with BoundedWindowAggExec.

Describe the solution you'd like
I want above query to run with BoundedWindowAggExec and it should be able to prune sections in the input table where the aggregator result is calculated.

Describe alternatives you've considered
N.A

Additional context
N.A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant