Skip to content

Create unified evaluate_many util function #18330

@EmilyMatt

Description

@EmilyMatt

Is your feature request related to a problem or challenge?

Currently there are countless duplicates of the same code around the project:
namely, receive a slice of exprs and an input batch, evaluate each expr with the input batch and call to_array(batch.num_rows) on the resulting ColumnarValues.
Most of these code chunks are inlined within functions, but one of them lives in aggregates/mod.rs, which seems out of place, and more importantly is marked pub.

Describe the solution you'd like

Move this pub function somewhere in datafusion_common, make all other occurrences call this function.

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions