You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (Jira)" <ji...@apache.org> on 2019/08/19 22:40:00 UTC

[jira] [Updated] (ARROW-6046) [C++] Slice RecordBatch of String array with offset 0 returns whole batch

     [ https://issues.apache.org/jira/browse/ARROW-6046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney updated ARROW-6046:
--------------------------------
    Fix Version/s:     (was: 1.0.0)
                   0.15.0

> [C++] Slice RecordBatch of String array with offset 0 returns whole batch
> -------------------------------------------------------------------------
>
>                 Key: ARROW-6046
>                 URL: https://issues.apache.org/jira/browse/ARROW-6046
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++, Python
>    Affects Versions: 0.14.1
>            Reporter: Sascha Hofmann
>            Assignee: Wes McKinney
>            Priority: Major
>             Fix For: 0.15.0
>
>
> We are seeing a very similar bug as in ARROW-809, just for a RecordBatch of strings. A slice of a RecordBatch with a string column and offset =0 returns the whole batch instead.
>  
> {code:java}
> import pandas as pd
> import pyarrow as pa
> df = pd.DataFrame({ 'b': ['test' for x in range(1000_000)]})
> tbl = pa.Table.from_pandas(df)
> batch = tbl.to_batches()[0]
> batch.slice(0,2).serialize().size
> # 4000232
> batch.slice(1,2).serialize().size
> # 240
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.2#803003)