Skip to content

[C++] Support casting to and from utf8_view/binary_view #42247

@felipecrv

Description

@felipecrv

Describe the enhancement requested

There are 3 categories of binary/string-like types in Arrow:

  • Span = utf8 | large_utf8 | binary | large_binary
  • Fixed = fixed_size_binary
  • View = utf8_view | binary_view

They can cast between themselves when a View is not involved:

Input Output CanCast
Span Fixed X
Fixed Span X
Span View
Fixed View
View Fixed
View Span

String views should behave similarly to strings when it comes to casts.

Component(s)

C++

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions