Skip to content

[C++] String split kernels do not propagate nulls correctly on sliced input #26212

@asfimport

Description

@asfimport

I am not sure if this is a specific test issue or valid behavior, but when writing a test in #8271 

The following test fails:

this->CheckUnary("split_pattern", R"(["foo bar", "foo", null])", list(this->type()),  //                  R"([["foo", "bar"], ["foo"], null])", &options);

with the following output

Failed:
Got: 
  [
    [
      [
        "foo",
        "bar"
      ]
    ],
    [
      [
        "foo"
      ],
      null
    ]
  ]
Expected: 
  [
    [
      [
        "foo",
        "bar"
      ]
    ],
    [
      [
        "foo"
      ],
      null
    ]
  ]

while the outputs are the same, the arrays are seen as unequal.

Reporter: Maarten Breddels / @maartenbreddels
Assignee: Antoine Pitrou / @pitrou

PRs and other links:

Note: This issue was originally created as ARROW-10208. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions