Describe the bug, including details regarding any error messages, version, and platform.
Steps to reproduce:
Run the following program on Ubuntu (reproduced on Ubuntu 24.04 using the official packages):
// g++ -g3 -O0 a.cc $(pkgconf --cflags --libs arrow) && ./a.out
#include <stdio.h>
#include <arrow/compute/api.h>
int
main(void)
{
auto func = *(arrow::compute::GetFunctionRegistry()->GetFunction("rank"));
printf("%p\n", func->default_options()->options_type());
return 0;
}
Expected result:
A valid pointer to a FunctionOptions object, specifically arrow::compute::RankOptions.
Actual result:
Returns nullptr.
Environments:
- Arrow version: 20.0.0
- OS: Ubuntu 24.04 (Debian noble)
- This does not reproduce on other platforms.
Component(s)
C++