OldCrow commented on issue #47180:
URL: https://github.com/apache/arrow/issues/47180#issuecomment-3115379632

   21.0.0 did not resolve the issue. Same problem - from vector_rank.cc at 
lines 361-363:
   ```
   ARROW_ASSIGN_OR_RAISE(
       auto sorted, SortAndMarkDuplicate(ctx, indices_begin, indices_end, 
input, order,
                                         options.null_placement, 
needs_duplicates)
                        .Run());
   ```
   SortAndMarkDuplicate is a template class 
   ```
   template <typename InputType>
   class SortAndMarkDuplicate : public TypeVisitor {
   ```
   but it appears the compiler can't deduce the template parameter InputType 
from the constructor arguments.
   
   My system has never installed this program before - I get it as a dependency 
for glances - either glances has changed their dependencies or it was 
previously installed as a bottle, I'm not certain. In any case, something about 
apache-arrow and this compiler is failing. Given that Apple Clang 12.0.0 is not 
THAT old (2020) and fully supports C++17, and most of C++20 I might guess that 
apache-arrow requires C++20 and that this is failing specifically due to lack 
of support for class template argument deduction for alias tempaltes or 
aggregates.
   
   There may need to be explicit template parameters needed:
   `SortAndMarkDuplicate<decltype(input)>(...)`
   or a helper function or compilation guards to support older Apple Clang
   


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to