Skip to content

C++: Writing sliced record batch to IPC writes the entire array #15387

Description

@asfimport

The bug can be triggered through python:

importpyarrow.parquetarray = pyarrow.array.from_pylist([1] * 1000000)
rb = pyarrow.RecordBatch.from_arrays([array], ['a'])
rb2 = rb.slice(0,2)
withopen('/tmp/t.arrow', 'wb') asf:
w = pyarrow.ipc.FileWriter(f, rb.schema)
w.write_batch(rb2)
w.close()

which will result in a big file:

$ll /tmp/t.arrow -rw-rw-r-- 1itaiitai800618Apr1213:22 /tmp/t.arrow

Reporter: Itai Incze / @itaiin
Assignee: Wes McKinney / @wesm

Related issues:

Note: This issue was originally created as ARROW-809. Please see the migration documentation for further details.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions