Skip to content

Add native ListView support for interleave kernel #9342

Closed

Description

@Jefffrey

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

While we appear to support listviews in interleave via the fallback, we can consider adding a native implementation if it is faster. We already do so for lists:

downcast_primitive! {
data_type => (primitive_helper, values, indices, data_type),
DataType::Utf8 => interleave_bytes::<Utf8Type>(values, indices),
DataType::LargeUtf8 => interleave_bytes::<LargeUtf8Type>(values, indices),
DataType::Binary => interleave_bytes::<BinaryType>(values, indices),
DataType::LargeBinary => interleave_bytes::<LargeBinaryType>(values, indices),
DataType::BinaryView => interleave_views::<BinaryViewType>(values, indices),
DataType::Utf8View => interleave_views::<StringViewType>(values, indices),
DataType::Dictionary(k, _) => downcast_integer! {
k.as_ref() => (dict_helper, values, indices),
_ => unreachable!("illegal dictionary key type {k}")
},
DataType::Struct(fields) => interleave_struct(fields, values, indices),
DataType::List(field) => interleave_list::<i32>(values, indices, field),
DataType::LargeList(field) => interleave_list::<i64>(values, indices, field),
_ => interleave_fallback(values, indices)
}

Describe the solution you'd like

Add native implementation of listvews to interleave without relying on fallback; would be good to see benchmarks to prove this is a performance boost worth doing.

Describe alternatives you've considered

Additional context

Activity

  1. added
    enhancement
    on Feb 3, 2026
  2. vegarsti commented on Feb 16, 2026

    @vegarsti
    Contributor

    take

  3. vegarsti commented on Feb 16, 2026

    @vegarsti
    Contributor

    @Jefffrey What's recommended here, should I add a benchmark first and commit that?

  4. Jefffrey commented on Feb 18, 2026

    @Jefffrey
    ContributorAuthor

    Personally I'm fine with having the new benchmarks included as part of the fix PR; as long as the results are posted with the PR so we can see at a glance if this is worth doing (then we can run benchmarks locally ourselves if we want to verify the results)

  5. vegarsti commented on Mar 15, 2026

    @vegarsti
    Contributor

    Sorry for the wait! I've added a PR for this now @Jefffrey

  6. vegarsti commented on Mar 15, 2026

    @vegarsti
    Contributor

    I discovered that MutableArrayData's extend for ListView is broken, opened an issue here: #9561

  7. added a commit that references this issue on May 20, 2026
    da09872
  8. added a commit that references this issue on Jun 2, 2026
    22038be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions