Skip to content

Commit

Permalink
fix: index out of bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
KKould committed Dec 25, 2023
1 parent e418418 commit e66d532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/execution/executor/dql/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ fn radix_sort<T>(mut tuples: Vec<(T, Vec<u8>)>) -> Vec<T> {
if let Some(max_len) = tuples.iter().map(|(_, bytes)| bytes.len()).max() {
// init buckets
let mut temp_buckets = Vec::with_capacity(BUCKET_SIZE);
for i in 0..BUCKET_SIZE {
temp_buckets[i] = Vec::new();
for _ in 0..BUCKET_SIZE {
temp_buckets.push(Vec::new());
}

for i in (0..max_len).rev() {
Expand Down

0 comments on commit e66d532

Please sign in to comment.