arrow icon indicating copy to clipboard operation
arrow copied to clipboard

[C++] Reuse abstraction for null partitions in sorting functions

Open taepper opened this issue 5 months ago • 1 comments

Describe the enhancement requested

#46926 introduced helper functions which partition a set of indices into three spans for null, nan and non_null_like. @pitrou mentioned the follow-up of consolidating these methods with other partitioning methods in vector_sort_internal.h as it can be confusing to have the same abstraction in the codebase twice.

The current NullPartitionResult structure only distinguished between null and non_null. This limitation is circumvented by storing two partition results, with the additional one distinguishing nan and non_null_like. This workaround should be removed by reusing the new PartitionResultByNullLikeness

Component(s)

C++

taepper avatar Jun 25 '26 01:06 taepper

Issue resolved by pull request 50248 https://github.com/apache/arrow/pull/50248

pitrou avatar Jul 22 '26 11:07 pitrou