You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/03/23 14:37:00 UTC

[jira] [Commented] (ARROW-12063) [C++] Add nulls position option to sort functions

    [ https://issues.apache.org/jira/browse/ARROW-12063?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17307133#comment-17307133 ] 

Antoine Pitrou commented on ARROW-12063:
----------------------------------------

This is probably desirable, and will also be slightly delicate to implement (there's a lot of sorting code already).

(Note it's not only nulls but also NaNs...)

> [C++] Add nulls position option to sort functions
> -------------------------------------------------
>
>                 Key: ARROW-12063
>                 URL: https://issues.apache.org/jira/browse/ARROW-12063
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>    Affects Versions: 3.0.0
>            Reporter: Ian Cook
>            Priority: Major
>
> Currently in the [sort functions|https://arrow.apache.org/docs/cpp/compute.html#sorts-and-partitions], nulls are considered greater than any other value and are sorted at the the end of the array. Add an option to enable users to sort nulls at the beginning if they wish. This option is common in analytic data systems, e.g. SQL {{NULLS FIRST}} and {{NULLS LAST}}, pandas {{na_position}}, R {{na.last}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)