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

[Rust] Divide by zero in arrays/builder.rs #24952

Closed
asfimport opened this issue May 14, 2020 · 1 comment
Closed

[Rust] Divide by zero in arrays/builder.rs #24952

asfimport opened this issue May 14, 2020 · 1 comment
Assignees
Milestone

Comments

@asfimport
Copy link
Collaborator

Integration testing exposed a bug in cases where values_data.len() is zero. This fails with divide by zero error.

// check that values_data length is multiple of len
assert!(
    values_data.len() / len == self.list_len as usize,
    "Values of FixedSizeList must have equal lengths, values have length {} and list has {}",
    values_data.len(),
    len
); 

Reporter: Andy Grove / @andygrove
Assignee: Andy Grove / @andygrove

PRs and other links:

Note: This issue was originally created as ARROW-8808. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Neville Dipale / @nevi-me:
Issue resolved by pull request 7186
#7186

@asfimport asfimport added this to the 1.0.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants