pitrou commented on code in PR #48956:
URL: https://github.com/apache/arrow/pull/48956#discussion_r2727769065


##########
cpp/src/arrow/compute/kernels/vector_array_sort.cc:
##########
@@ -183,8 +183,6 @@ class ArrayCompareSorter<DictionaryType> {
                                          const ArraySortOptions& options,
                                          ExecContext* ctx) {
     const auto& dict_array = checked_cast<const DictionaryArray&>(array);
-    // TODO: These methods should probably return a const&? They seem capable.
-    // https://github.com/apache/arrow/issues/35437
     auto dict_values = dict_array.dictionary();

Review Comment:
   Just make them both `const auto&`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to