You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by su...@apache.org on 2019/04/11 03:03:41 UTC

[arrow] branch master updated: ARROW-5159: [Rust] Unable to build benches in arrow crate.

This is an automated email from the ASF dual-hosted git repository.

sunchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 03122de  ARROW-5159: [Rust] Unable to build benches in arrow crate.
03122de is described below

commit 03122de7c76f279a5d046acb4c5b4c96756110a4
Author: Zhiyuan Zheng <zh...@yandex.com>
AuthorDate: Wed Apr 10 20:03:30 2019 -0700

    ARROW-5159: [Rust] Unable to build benches in arrow crate.
    
    After the refactor of kernel related files in ARROW-5116, the files in `bench` folder won't compile.
    
    eg. 
    ```
    error[E0432]: unresolved import `arrow::compute::boolean_kernels`
     --> arrow/benches/boolean_kernels.rs:26:5
     |
    26 | use arrow::compute::boolean_kernels;
     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `boolean_kernels` in `compute`
    ```
    This pr fixes these import errors.
    
    Author: Zhiyuan Zheng <zh...@yandex.com>
    
    Closes #4138 from zhzy0077/fix/arrow-5159 and squashes the following commits:
    
    3abacd80 <Zhiyuan Zheng> fix ARROW-5159: bench compile error.
---
 rust/arrow/benches/arithmetic_kernels.rs | 2 +-
 rust/arrow/benches/boolean_kernels.rs    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rust/arrow/benches/arithmetic_kernels.rs b/rust/arrow/benches/arithmetic_kernels.rs
index dd1c435..855355d 100644
--- a/rust/arrow/benches/arithmetic_kernels.rs
+++ b/rust/arrow/benches/arithmetic_kernels.rs
@@ -25,8 +25,8 @@ extern crate arrow;
 
 use arrow::array::*;
 use arrow::builder::*;
-use arrow::compute::arithmetic_kernels::*;
 use arrow::compute::array_ops::{limit, sum};
+use arrow::compute::kernels::arithmetic::*;
 use arrow::error::Result;
 
 fn create_array(size: usize) -> Float32Array {
diff --git a/rust/arrow/benches/boolean_kernels.rs b/rust/arrow/benches/boolean_kernels.rs
index 237b1e9..d01c9df 100644
--- a/rust/arrow/benches/boolean_kernels.rs
+++ b/rust/arrow/benches/boolean_kernels.rs
@@ -23,7 +23,7 @@ extern crate arrow;
 
 use arrow::array::*;
 use arrow::builder::*;
-use arrow::compute::boolean_kernels;
+use arrow::compute::kernels::boolean as boolean_kernels;
 use arrow::error::{ArrowError, Result};
 
 ///  Helper function to create arrays