Skip to content

Change UDF signature to use ColumnarValue rather than raw Arrow types #4358

@andygrove

Description

@andygrove

What is the problem the feature request solves?

Is your feature request related to a problem or challenge?

DataFusion uses ColumnarValue to represent Arrays and Scalars.

#[derive(Clone, Debug)]
pub enum ColumnarValue {
    /// Array of values
    Array(ArrayRef),
    /// A single value
    Scalar(ScalarValue),
}

Perhaps we should use this in the UDF signatures. This avoids the need to pass in row counts.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Describe the potential solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:expressionsExpression evaluationenhancementNew feature or requestpriority:lowMinor issues, test failures, tooling, cosmetic

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions