Skip to content

Commit

Permalink
Revert "Avoid extra shared pointer copy"
Browse files Browse the repository at this point in the history
This reverts commit 069c30f.
  • Loading branch information
EnricoMi committed Mar 7, 2025
1 parent 747755c commit ef2f9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/align_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Type::type GetTypeForBuffers(const ArrayData& array) {
if (type_id == Type::DICTIONARY) {
// return index type id, provided by the DictionaryType array.type or
// array.type->storage_type() if array.type is an ExtensionType
const std::shared_ptr<DataType>& dict_type = array.type;
std::shared_ptr<DataType> dict_type = array.type;
if (array.type->id() == Type::EXTENSION) {
dict_type = checked_pointer_cast<ExtensionType>(array.type)->storage_type();
}
Expand Down

0 comments on commit ef2f9a9

Please sign in to comment.