Skip to content

Support DataType::ListView and DataType::LargeListView in ArrayData::new_null #8908

@dqkqd

Description

@dqkqd

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

DataType::ListView and DataType::LargeListView in are not handled in ArrayData::new_null:

DataType::List(f) | DataType::Map(f, _) => (
vec![zeroed((len + 1) * 4)],
vec![ArrayData::new_empty(f.data_type())],
true,
),
DataType::LargeList(f) => (
vec![zeroed((len + 1) * 8)],
vec![ArrayData::new_empty(f.data_type())],
true,
),
DataType::FixedSizeList(f, list_len) => (
vec![],
vec![ArrayData::new_null(f.data_type(), *list_len as usize * len)],
true,
),
DataType::Struct(fields) => (

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    arrowChanges to the arrow crateenhancementAny 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