Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10345

[C++] NaN breaks sorting

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 3.0.0
    • Component/s: C++

      Description

      >>> import numpy as np
      >>> import pyarrow.compute as pc
      >>> pc.sort_indices([3.0, 4.0, 1.0, 2.0, None])
      <pyarrow.lib.UInt64Array object at 0x7f78368a0c90>
      [
        2,
        3,
        0,
        1,
        4
      ]
      >>> pc.sort_indices([3.0, 4.0, np.nan, 1.0, 2.0, None])
      <pyarrow.lib.UInt64Array object at 0x7f783684bf30>
      [
        0,
        1,
        2,
        3,
        4,
        5
      ]
      

        Attachments

          Activity

            People

            • Assignee:
              yibo Yibo Cai
              Reporter:
              apitrou Antoine Pitrou
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h 40m
                3h 40m