Skip to content

Commit

Permalink
MINOR: [C++] Fix a typo (#39053)
Browse files Browse the repository at this point in the history
### Rationale for this change

Noticed a typo on the code and proposing a fix

### Are these changes tested?

Yes. It is passed by existing test cases.

### Are there any user-facing changes?

No

Authored-by: Hyunseok Seo <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
llama90 authored Dec 5, 2023
1 parent b3e607b commit 9b03ffb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cpp/src/arrow/array/array_dict.cc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Result<std::shared_ptr<ArrayData>> TransposeDictIndices(
return out_data;
}

struct CompactTransposeMapVistor {
struct CompactTransposeMapVisitor {
const std::shared_ptr<ArrayData>& data;
arrow::MemoryPool* pool;
std::unique_ptr<Buffer> output_map;
Expand Down Expand Up @@ -306,11 +306,11 @@ Result<std::unique_ptr<Buffer>> CompactTransposeMap(
}

const auto& dict_type = checked_cast<const DictionaryType&>(*data->type);
CompactTransposeMapVistor vistor{data, pool, nullptr, nullptr};
RETURN_NOT_OK(VisitTypeInline(*dict_type.index_type(), &vistor));
CompactTransposeMapVisitor visitor{data, pool, nullptr, nullptr};
RETURN_NOT_OK(VisitTypeInline(*dict_type.index_type(), &visitor));

out_compact_dictionary = vistor.out_compact_dictionary;
return std::move(vistor.output_map);
out_compact_dictionary = visitor.out_compact_dictionary;
return std::move(visitor.output_map);
}
} // namespace

Expand Down

0 comments on commit 9b03ffb

Please sign in to comment.