Skip to content

Commit

Permalink
Name variables consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Trinquier committed Feb 24, 2019
1 parent 2e9616b commit 5a1047c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rust/arrow/src/compute/array_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,10 @@ pub fn filter(array: &Array, filter: &BooleanArray) -> Result<ArrayRef> {
}

macro_rules! limit_array {
($array:expr, $num_rows_to_read:expr, $array_type:ident) => {{
($array:expr, $num_elements:expr, $array_type:ident) => {{
let b = $array.as_any().downcast_ref::<$array_type>().unwrap();
let mut builder = $array_type::builder($num_rows_to_read);
for i in 0..$num_rows_to_read {
let mut builder = $array_type::builder($num_elements);
for i in 0..$num_elements {
builder.append_value(b.value(i))?;
}
Ok(Arc::new(builder.finish()))
Expand Down

0 comments on commit 5a1047c

Please sign in to comment.