Skip to content

[C++][CI] StructToStructSubset test failure with libc++ 22.1.1 #49586

Closed

Description

@pitrou

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

This has started appearing on MinGW CLang CI, see https://github.com/apache/arrow/actions/runs/23467758420/job/68341855187 for example

The root cause is in a libc++ change in std::multimap, see llvm/llvm-project#152370 (comment) . It's unclear yet whether our code or the libc++ change is incorrect.

Component(s)

C++, Continuous Integration

Activity

  1. pitrou commented on Mar 24, 2026

    @pitrou
    MemberAuthor
  2. pitrou commented on Mar 24, 2026

    @pitrou
    MemberAuthor

    In any case, this can probably be worked around by calling lower_bound for the given key and then extract on the returned iterator.

  3. raulcd commented on Apr 7, 2026

    @raulcd
    Member

    This is also happening on the verification nightly jobs:

  4. tadeja commented on Apr 7, 2026

    @tadeja
    Member

    Pasting part from the example logs (as it's slow to load) https://github.com/apache/arrow/actions/runs/23467758420/job/68341855187

    [ RUN      ] Cast.StructToStructSubset
    D:/a/arrow/arrow/cpp/src/arrow/testing/gtest_util.cc:111: Failure
    Failed
    
    @@ -0, +0 @@
    -{a: 1}
    -{a: 2}
    -{a: 5}
    +{a: 3}
    +{a: 4}
    +{a: 7}
    Expected:
      -- is_valid: all not null
      -- child 0 type: uint8
        [
          1,
          2,
          5
        ]
    Actual:
      -- is_valid: all not null
      -- child 0 type: uint8
        [
          3,
          4,
          7
        ]
    Google Test trace:
    D:/a/arrow/arrow/cpp/src/arrow/compute/kernels/scalar_cast_test.cc:3819: To type: uint8
    D:/a/arrow/arrow/cpp/src/arrow/compute/kernels/scalar_cast_test.cc:3817: From type: uint8
    
    D:/a/arrow/arrow/cpp/src/arrow/compute/kernels/test_util_internal.cc:103: Failure
    ...
    
  5. added this to the 24.0.0 milestone on Apr 7, 2026
  6. kou commented on Apr 7, 2026

    @kou
    Member

    Issue resolved by pull request 49682
    #49682

  7. kou commented on Apr 7, 2026

    @kou
    Member

    @raulcd I've added "24.0.0" milestone not "25.0.0" for easy to verification.

  8. added a commit that references this issue on Apr 7, 2026
  9. added a commit that references this issue on Apr 8, 2026
  10. added a commit that references this issue on May 26, 2026
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