Skip to content

Make AggregateFunction take a single argument #444

Closed

Description

@Dandandan

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
This makes the representation of aggregate functions more correct, makes code dealing with aggregate functions more simple.

Describe the solution you'd like
Instead of Vec<Expr> use Box<Expr>

Describe alternatives you've considered
Keeping it as is.

Additional context

Activity

  1. jorgecarleitao commented on May 30, 2021

    @jorgecarleitao
    Member

    fyi, the goal of being Vec was to allow multi-argument aggregates. An example is the pearson correlation between two columns (which can currently be implemented via a UDAF)

  2. Dandandan commented on May 30, 2021

    @Dandandan
    ContributorAuthor

    @jorgecarleitao Ah, yeah I think that makes sense. I'll just take care of it.

    I think there is still some code (e.g. in Ballista protobuf I believe) that assumes only 1 argument, so when we are going to support that, it should be adapted.

  3. added a commit that references this issue on Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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