Skip to content

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

@andygrove

Description

@andygrove

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 (see #57).

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions