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

[Rust] DivideByZero when running arrow crate when simd feature is disabled

    XMLWordPrintableJSON

Details

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

    Description

      This is reproducible when running without simd features, or when trying to compile on an aarch64 machine as well.

       

      % cargo test --no-default-features

       

      failures:---- compute::kernels::arithmetic::tests::test_primitive_array_divide_with_nulls stdout ----
      thread 'compute::kernels::arithmetic::tests::test_primitive_array_divide_with_nulls' panicked at 'called `Result::unwrap()` on an `Err` value: DivideByZero', src/libcore/result.rs:1187:5
      failures:
          compute::kernels::arithmetic::tests::test_primitive_array_divide_with_nullstest result: FAILED. 312 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out 

       

      I tried to address the issue this myself, and it looks like the divide function with the simd feature doesn't work properly, something is up with math_op but I don't understand this well enough.

       

      Attachments

        Issue Links

          Activity

            People

              paddyhoran Paddy Horan
              rtyler R. Tyler Croy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: