Skip to content

[C++] Add cast "metafunction" to FunctionRegistry that addresses dispatching to appropriate type-specific CastFunction #17198

@asfimport

Description

@asfimport

By setting the output type in CastOptions, we can write

call_function("cast", [arg], cast_options)

This simplifies use of casting for binding developers. This mimics the standard SQL

CAST(expr AS target_type)

Reporter: Wes McKinney / @wesm
Assignee: Wes McKinney / @wesm

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-8918. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions