Skip to content

[C++][Compute] SIGSEGV when calling choose function on chunked input #47807

@zanmato1984

Description

@zanmato1984

Describe the bug, including details regarding any error messages, version, and platform.

I've minimized the reproduction in the following C++ case:

TEST(TestChooseKernel, ArraySpanNullCountForChunked) {
  auto indices = ArrayFromJSON(int64(), "[0, 1, 0, 1, 0, null]");
  auto values1 = ArrayFromJSON(int64(), "[10, 11, 12, 13, 14, 15]");
  auto values2 = ChunkedArrayFromJSON(int64(), {"[100, 101]", "[102, 103, 104, 105]"});
  CheckScalar("choose", {indices, values1, values2},
              ArrayFromJSON(int64(), R"([10, 101, 12, 103, 14, null])"));
}

Failure:

Test has ended unexpectedly: Signal received: SIGSEGV

Component(s)

C++

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions