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

[Python] Comparing array to None raises error

    XMLWordPrintableJSON

Details

    Description

      Seems comparing pyarrow Array to None currently causes a crash instead of returning False value

      >>> pa.array([]) == None
       Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "pyarrow/array.pxi", line 1037, in pyarrow.lib.Array._eq_
         except TypeError:
        File "pyarrow/array.pxi", line 1042, in pyarrow.lib.Array.equalsAttributeError: 'NoneType' object has no attribute 'ap'

      Attachments

        Activity

          People

            amol- Alessandro Molina
            amol- Alessandro Molina
            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 - 1h
                1h