Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiayu Liu committed Jun 13, 2021
1 parent 7fbe3f0 commit 2650680
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions datafusion/src/physical_plan/hash_aggregate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ fn dictionary_create_key_for_col<K: ArrowDictionaryKeyType>(
))
})?;

create_key_for_col(&dict_col.values(), values_index, vec)
create_key_for_col(dict_col.values(), values_index, vec)
}

/// Appends a sequence of [u8] bytes for the value in `col[row]` to
Expand Down Expand Up @@ -1091,7 +1091,7 @@ fn dictionary_create_group_by_value<K: ArrowDictionaryKeyType>(
))
})?;

create_group_by_value(&dict_col.values(), values_index)
create_group_by_value(dict_col.values(), values_index)
}

/// Extract the value in `col[row]` as a GroupByScalar
Expand Down
2 changes: 1 addition & 1 deletion datafusion/src/physical_plan/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ pub trait WindowExpr: Send + Sync + Debug {
fn evaluate_args(&self, batch: &RecordBatch) -> Result<Vec<ArrayRef>> {
self.expressions()
.iter()
.map(|e| e.evaluate(&batch))
.map(|e| e.evaluate(batch))
.map(|r| r.map(|v| v.into_array(batch.num_rows())))
.collect()
}
Expand Down
2 changes: 1 addition & 1 deletion datafusion/src/scalar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ impl ScalarValue {
keys_col.data_type()
))
})?;
Self::try_from_array(&dict_array.values(), values_index)
Self::try_from_array(dict_array.values(), values_index)
}
}

Expand Down

0 comments on commit 2650680

Please sign in to comment.