Skip to content

Add StringViewArray implementation and layout and basic construction + tests #5469

Closed
@alamb

Description

@alamb

This is part of the larger project to implement StringViewArray -- see #5374

After #5468 we will next need to implement StringViewArray

For inspiration I think you can look at #4585

(specifically arrow-array/src/array/byte_view_array.rs https://github.com/apache/arrow-rs/pull/4585/files#diff-160ecd8082d5d28081f01cdb08a898cb8f49b17149c7118bf96746ddaae24b4f)

Basic tasks:

  1. CreateUtf8ViewArray and implement Array for it. This should follow the outline from Add StringViewArray and BinaryViewArray (#4253) #4585 and implement a similar API to StringArray https://docs.rs/arrow/latest/arrow/array/type.StringArray.html
  2. Add documentaton for new array, with documentation
  3. Examples of constructing the array in docs
  4. Tests for basic creation APIs (like new() and new_unchecked, value(), is_null() etc).

Potentially: implement pretty printing for Utf8ViewArray via ArrayFormatter, though this could be done as a separate ticket / PR.

Metadata

Metadata

Assignees

Labels

arrowChanges to the arrow crateparquetChanges to the parquet crate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions