Skip to content

cast kernel support for StringViewArray and BinaryViewArray #5508

@alamb

Description

@alamb

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
This is part of the larger project to implement StringViewArray -- see #5374

In #5481 we added support for StringViewArray and ByteViewArray.

This ticket tracks supporting StringViewArray and ByteViewArray in the cast kernel: https://docs.rs/arrow/latest/arrow/compute/kernels/cast/index.html

Describe the solution you'd like

Specifically the following conversions should be supported in the cast kernels:

  • StringViewArray <--> StringArray
  • StringViewArray <--> LargeStringArray

And similarly for Binary:

  • BinaryViewArray <--> BinaryArray
  • BinaryViewArray <--> LargeBinaryArray

Notes:

  1. Good test coverage is the most important part of this ticket
  2. I recommend 2 PRs (one for StringView and one for BinaryView) to make review easier -- once we have one then the other will largely follow the example of the first
  3. We can track other features in follow on tickets (e.g. DictionaryArray <--> StringViewArray)

Subtasks

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAny 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