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

[Python] Arrow scalar values should have a sensible __hash__ and comparison

    XMLWordPrintableJSON

    Details

      Description

      In [86]: arr = pa.from_pylist([1, 1, 1, 2])
      
      In [87]: set(arr)
      Out[87]: {1, 2, 1, 1}
      
      In [88]: arr[0] == arr[1]
      Out[88]: False
      
      In [89]: arr
      Out[89]: 
      <pyarrow.array.Int64Array object at 0x7f8c8c739e08>
      [
        1,
        1,
        1,
        2
      ]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexhagerman Alex Hagerman
                Reporter:
                tebeka Miki Tebeka
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: