Skip to content

[datafusion-spark] Add date_part function #19822

@cht42

Description

@cht42

Is your feature request related to a problem or challenge?

The current date_part function in datafusion have a few differences with the spark implementation:

  • day of week parts are 1 indexed in spark but 0 indexed in datafusion
  • spark supports a few more aliases for certain parts

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions