Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-8808

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • Rust

    Description

      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
      ); 

      Attachments

        Issue Links

          Activity

            People

              andygrove Andy Grove
              andygrove Andy Grove
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h