kou commented on issue #46299:
URL: https://github.com/apache/arrow/issues/46299#issuecomment-2848537505

   It seems that `arrow::compute::RankOptions::Defaults()` may be called 
https://github.com/apache/arrow/blob/81bb98853c5c84132dc1ae9cd1be8507bdd0800a/cpp/src/arrow/compute/kernels/vector_rank.cc#L386
    before `arrow::compute::internal::kRankOptionsType` is initialized 
https://github.com/apache/arrow/blob/81bb98853c5c84132dc1ae9cd1be8507bdd0800a/cpp/src/arrow/compute/api_vector.cc#L154-L157
 .
   
   `arrow::compute::internal::kRankOptionsType` is used in 
`arrow::compute::RankOptions::RankOptions()` that is used by 
`RankOptions::Defaults()`:
   
   
https://github.com/apache/arrow/blob/81bb98853c5c84132dc1ae9cd1be8507bdd0800a/cpp/src/arrow/compute/api_vector.cc#L237
   
   @pitrou @bkietz Do you know whether there is the static variable 
initialization order specification for C++ or not?


-- 
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