Skip to content

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

Closed

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.

Activity

  1. asfimport commented on Oct 7, 2020

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    Just thinking out loud, but it may be that the types are different (perhaps list vs. large_list? perhaps one list has a non-nullable child field?).

  2. asfimport commented on Oct 21, 2020

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    Ok, so the actual problem is that the split kernel was reusing the input's null bitmap, even if the input is sliced.

  3. asfimport commented on Oct 22, 2020

    @asfimport
    Author

    Antoine Pitrou / @pitrou:
    Issue resolved by pull request 8496
    #8496

  4. added this to the 3.0.0 milestone on Jan 11, 2023
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