Skip to content

Cast between array elements #6558

@izveigor

Description

@izveigor

Is your feature request related to a problem or challenge?

Arter Pull Request: #6384, In arrow-datafusion casting between arrays elements stopped working. The feature could be of great help when working with different types of data.

Describe the solution you'd like

All rules should be simillar to the cast function in arrow-rs (See https://docs.rs/arrow/latest/arrow/compute/kernels/cast/index.html)

For example, if we create new array with Int32Type and Int64Type should return Int64Array.

select make_array(Int32(1), Int64(2));
----
Int64(1), Int64(2)

Describe alternatives you've considered

No response

Additional context

Simillar Issues:
#6119
#6075

Simillar PR:
#6384

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