Skip to content

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

Closed
@Michael-J-Ward

Description

@Michael-J-Ward

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions