westonpace commented on a change in pull request #8984:
URL: https://github.com/apache/arrow/pull/8984#discussion_r546934934
##########
File path: cpp/src/arrow/array/array_dict.cc
##########
@@ -44,6 +44,29 @@ namespace arrow {
using internal::checked_cast;
using internal::CopyBitmap;
+struct MaxIndexAccessor {
Review comment:
The DictionaryUnifier is typed to the value type of the dictionary but
not the index type so I needed to create this utility for accessing the max
possible value for a given index type. I wasn't really sure where to put this.
There could also be a general purpose visitor for finding the min/max of all
numeric types. Also, do we have this capability anywhere else in the code base
I could just leverage? This is needed by
DictionaryUnifierImpl::GetResultWithIndexType
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]