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

feat: ergonomic way to use aggregates as window functions #865

Closed
Michael-J-Ward opened this issue Sep 9, 2024 · 0 comments · Fixed by #871
Closed

feat: ergonomic way to use aggregates as window functions #865

Michael-J-Ward opened this issue Sep 9, 2024 · 0 comments · Fixed by #871
Labels
enhancement New feature or request

Comments

@Michael-J-Ward
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

@timsaucer commented

I think another thing that would be very helpful would be to have a more ergonomic way to use aggregates as window functions. I could see two ways

  • Update functions.window to take an aggregate function instead of a registered function name.
  • Add something like Expr.over() so you could do something like first_value(col("a")).over(window) where window is a window frame definition.
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