This is an automated email from the ASF dual-hosted git repository.

apitrou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9b03ffb8e8 MINOR: [C++] Fix a typo (#39053)
9b03ffb8e8 is described below

commit 9b03ffb8e81deeb0f298bf7f621d21b3d3de45ae
Author: Hyunseok Seo <[email protected]>
AuthorDate: Wed Dec 6 02:07:31 2023 +0900

    MINOR: [C++] Fix a typo (#39053)
    
    
    
    ### 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]>
---
 cpp/src/arrow/array/array_dict.cc | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/cpp/src/arrow/array/array_dict.cc 
b/cpp/src/arrow/array/array_dict.cc
index 28fccdbfcf..7fd76a1dae 100644
--- a/cpp/src/arrow/array/array_dict.cc
+++ b/cpp/src/arrow/array/array_dict.cc
@@ -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;
@@ -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
 

Reply via email to