Skip to content

Commit

Permalink
Fix kernel and test eq_dict_scalar is passing
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmturner committed Dec 8, 2021
1 parent c147869 commit b5f04c5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions arrow/src/compute/kernels/comparison.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,8 @@ macro_rules! compare_dict_op_scalar {
// Safety:
// `i < $left.len()`
let comparison: Vec<bool> = (0..array.len())
.map(|i| unsafe {
let key = array.value_unchecked(i).to_usize().unwrap();
println!("Left: {:?} Right: {:?}", array.value_unchecked(i), $right);
println!("{:?}", $op(array.value_unchecked(key), $right));
$op(array.value_unchecked(key), $right)
})
.map(|i| unsafe { $op(array.value_unchecked(i), $right) })
.collect();
println!("{:?}", comparison);

let result: Vec<bool> = (0..$left.keys().len())
.map(|key| {
Expand Down

0 comments on commit b5f04c5

Please sign in to comment.