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

[Python] pyarrow.array segfaults when passed masked array with shrunken mask

    XMLWordPrintableJSON

Details

    Description

      >>> import numpy as np, pyarrow as pa                               
      >>> pa.array(np.ma.array([0]))
      

      I think the issue might be here because when the masked array has a shrunken mask, it's values is False rather than the boolean mask array.

              if isinstance(values, np.ma.MaskedArray):
                  if mask is not None:
                      raise ValueError("Cannot pass a numpy masked array and "
                                       "specify a mask at the same time")
                  else:
                      mask = values.mask
                      values = values.data
      

      Attachments

        Issue Links

          Activity

            People

              nugend Daniel Nugent
              nugend Daniel Nugent
              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 10m
                  1h 10m