Skip to content

[C++] arrow::compute::Function::default_options() returns nullptr for "rank" on Ubuntu #46299

Description

@tikkss

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>intmain(void)
{
auto func = *(arrow::compute::GetFunctionRegistry()->GetFunction("rank"));
printf("%p\n", func->default_options()->options_type());
return0;
}

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions