Skip to content

Add DatePart::from_str API #9930

Description

@sdf-jkl

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

Part of apache/datafusion#22033.

To unify granularity and field-name parsing across temporal functions we can reuse the arrow_arith::temporal::DatePart enum.

To do so, we need to add a parser - DatePart::from_str

Describe the solution you'd like

  • Add a DatePart::from_str API

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny new improvement worthy of a entry in the changelog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions