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 <[email protected]>
  • Loading branch information
R-JunmingChen and bkietz authored Oct 10, 2023
1 parent 90f27f1 commit c8a0480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/array/array_dict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Result<std::unique_ptr<Buffer>> CompactTransposeMapImpl(

CType current_index = indices_data[i];
if (current_index < 0 || current_index >= dict_len) {
return Status::IndexError("indice out of bound:", current_index);
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]) {
dict_used[current_index] = true;
}
Expand Down

0 comments on commit c8a0480

Please sign in to comment.