Skip to content

Move arrow_cast to datafusion-functions crate #9287

@alamb

Description

@alamb

Is your feature request related to a problem or challenge?

Part of #9285 and #8045

The goal is to extract function definitions out of the datafusion core.

This ticket also has the nice benefit of being able to show off the newly added API in #8985

Describe the solution you'd like

Move the arrow_cast function to datafusion-functions

Describe alternatives you've considered

Note arrow_cast is somewhat different than most functions as it is implemented as part of sql parsing rather than as a normal BuiltinFunction. This means that the rest
of datafusion sees it as an Expr::Cast which has special case handling.

We may need to add some way to for ScalarUDFs to simplify themselves (in this case for ArrowCast to "unwrap" itself).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions