pitrou commented on code in PR #46303: URL: https://github.com/apache/arrow/pull/46303#discussion_r2074784408
########## cpp/src/arrow/compute/kernels/vector_rank.cc: ########## @@ -381,9 +381,13 @@ class RankMetaFunction : public RankMetaFunctionBase<RankMetaFunction> { } RankMetaFunction() - : RankMetaFunctionBase("rank", Arity::Unary(), rank_doc, &kDefaultOptions) {} + : RankMetaFunctionBase("rank", Arity::Unary(), rank_doc, GetDefaultOptions()) {} Review Comment: An inline variable will have the same issue that this PR tries to fix, right? i.e. it could be initialized before the corresponding function options type. -- 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