Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect value in error message from GenericListArray::try_new_from_array_data #526

Closed
jhorstmann opened this issue Jul 6, 2021 · 0 comments · Fixed by #2961
Closed
Labels

Comments

@jhorstmann
Copy link
Contributor

Describe the bug
The error message should report the number of buffers instead of the arrays length:

if data.buffers().len() != 1 {
    return Err(ArrowError::InvalidArgumentError(
        format!("ListArray data should contain a single buffer only (value offsets), had {}",
                data.len())));
}

To Reproduce
Try to create a ListArray using ArrayDataBuilder and make_array, but forgetting to add a buffer.

Expected behavior
Error message should contain the actual number of buffers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant