[ https://issues.apache.org/jira/browse/ARROW-8808?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-8808: ---------------------------------- Labels: pull-request-available (was: ) > [Rust] Divide by zero in arrays/builder.rs > ------------------------------------------ > > Key: ARROW-8808 > URL: https://issues.apache.org/jira/browse/ARROW-8808 > Project: Apache Arrow > Issue Type: Bug > Components: Rust > Reporter: Andy Grove > Priority: Major > Labels: pull-request-available > Fix For: 1.0.0 > > Time Spent: 10m > Remaining Estimate: 0h > > Integration testing exposed a bug in cases where values_data.len() is zero. > This fails with divide by zero error. > {code:java} > // 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 > ); {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)