Skip to content

[Bug] sort_boolean function unstable #5447

Open
@JasonLi-cn

Description

@JasonLi-cn

Describe the bug

UTest

arrow-rs/arrow-ord/src/sort.rs

Lines 1481 to 1490 in 877e870

// boolean, descending, nulls first, limit
test_sort_to_indices_boolean_arrays(
vec![None, Some(false), Some(true), Some(true), Some(false), None],
Some(SortOptions {
descending: true,
nulls_first: true,
}),
Some(3),
vec![0, 5, 2],
);

Rustc

nightly-2023-05-15-aarch64-apple-darwin: ❌

thread 'sort::tests::test_sort_boolean' panicked at 'assertion failed: `(left == right)`
  left: `PrimitiveArray<UInt32>
[
  0,
  5,
  3,
]`,
 right: `PrimitiveArray<UInt32>
[
  0,
  5,
  2,
]`',

1.71.1-aarch64-apple-darwin: ✅

To Reproduce

Expected behavior

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions