Skip to content

Commit

Permalink
use better hashing for inner join
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed May 28, 2021
1 parent 0a5cd1b commit e469bb4
Show file tree
Hide file tree
Showing 2 changed files with 229 additions and 105 deletions.
12 changes: 4 additions & 8 deletions polars/polars-core/src/frame/groupby/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,18 +1292,14 @@ mod test {
let ca = UInt32Chunked::new_from_slice("", &slice);
let splitted = split_ca(&ca, 4).unwrap();

let a = groupby(ca.into_iter())
let a = groupby(ca.into_iter()).into_iter().sorted().collect_vec();

let keys = splitted.iter().map(|ca| ca.cont_slice().unwrap()).collect();
let b = groupby_threaded_num(keys, 0)
.into_iter()
.sorted()
.collect_vec();

let keys = splitted.iter().map(|ca| ca.cont_slice().unwrap()).collect();
let b =
groupby_threaded_num(keys, 0,)
.into_iter()
.sorted()
.collect_vec();

assert_eq!(a, b);
}
}
Expand Down

0 comments on commit e469bb4

Please sign in to comment.