Skip to content

Commit

Permalink
Update cpp/src/arrow/array/array_dict.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Benjamin Kietzman <bengilgit@gmail.com>
  • Loading branch information
R-JunmingChen and bkietz authored Oct 11, 2023
1 parent 168a891 commit 0cffac0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/arrow/array/array_dict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ struct CompactTransposeMapVistor {
return Status::IndexError(
"Index out of bounds while compacting dictionary array: ", current_index,
"(dictionary is ", dict_length, " long) at position ", i);
} else if (!dict_used[current_index]) {
}
if (dict_used[current_index]) continue;
dict_used[current_index] = true;
dict_used_count++;

Expand Down

0 comments on commit 0cffac0

Please sign in to comment.