Skip to content

[Arrow] Integrate ExtensionType::validate within ExtensionType::try_new #9708

@sdf-jkl

Description

@sdf-jkl

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

In #9677 @scovich and @alamb proposed integrating the new validate API within try_new.

It will reduce code duplication, improve modularity and prevent the potential slowdown from using the default value.

Describe the solution you'd like

Move the ExtensionType validation logic from the try_new into validate. Use validate in try_new.

Describe alternatives you've considered

Not do anything since there aren't too many plain validation cases in the codebase yet.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny new improvement worthy of a entry in the changelog

    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