[ https://issues.apache.org/jira/browse/ARROW-6395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joris Van den Bossche updated ARROW-6395: ----------------------------------------- Fix Version/s: 0.15.0 > [pyarrow] Bug when using bool arrays with stride greater than 1 > --------------------------------------------------------------- > > Key: ARROW-6395 > URL: https://issues.apache.org/jira/browse/ARROW-6395 > Project: Apache Arrow > Issue Type: Bug > Affects Versions: 0.14.0 > Reporter: Philip Felton > Priority: Major > Fix For: 0.15.0 > > > Here's code to reproduce it: > {code:python} > >>> import numpy as np > >>> import pyarrow as pa > >>> pa.__version__ > '0.14.0' > >>> xs = np.array([True, False, False, True, True, False, True, True, True, > >>> False, False, False, False, False, True, False, True, True, True, True, > >>> True]) > >>> xs_sliced = xs[0::2] > >>> xs_sliced > array([ True, False, True, True, True, False, False, True, True, > True, True]) > >>> pa_xs = pa.array(xs_sliced, pa.bool_()) > >>> pa_xs > <pyarrow.lib.BooleanArray object at 0x00000234C5165360> > [ > true, > false, > false, > false, > false, > false, > false, > false, > false, > false, > false > ]{code} -- This message was sent by Atlassian Jira (v8.3.2#803003)