[jira] [Updated] (ARROW-5374) [Python] pa.read_record_batch() doesn't work

2019-08-15 Thread Wes McKinney (JIRA)


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

Wes McKinney updated ARROW-5374:

Fix Version/s: 0.15.0

> [Python] pa.read_record_batch() doesn't work
> 
>
> Key: ARROW-5374
> URL: https://issues.apache.org/jira/browse/ARROW-5374
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: Python
>Reporter: Antoine Pitrou
>Priority: Major
>  Labels: beginner
> Fix For: 0.15.0
>
>
> {code:python}
> >>> batch = pa.RecordBatch.from_arrays([pa.array([b"foo"], type=pa.utf8())], 
> >>> names=['strs'])   
> >>> 
> >>> stream = pa.BufferOutputStream()
> >>> writer = pa.RecordBatchStreamWriter(stream, batch.schema)
> >>> writer.write_batch(batch) 
> >>>   
> >>>
> >>> writer.close()
> >>>   
> >>>
> >>> buf = stream.getvalue()   
> >>>   
> >>>
> >>> pa.read_record_batch(buf, batch.schema)   
> >>>   
> >>>
> Traceback (most recent call last):
>   File "", line 1, in 
> pa.read_record_batch(buf, batch.schema)
>   File "pyarrow/ipc.pxi", line 583, in pyarrow.lib.read_record_batch
> check_status(ReadRecordBatch(deref(message.message.get()),
>   File "pyarrow/error.pxi", line 87, in pyarrow.lib.check_status
> raise ArrowIOError(message)
> ArrowIOError: Expected IPC message of type schema got record batch
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Updated] (ARROW-5374) [Python] pa.read_record_batch() doesn't work

2019-08-15 Thread lidavidm (JIRA)


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

lidavidm updated ARROW-5374:

Labels: beginner  (was: begin)

> [Python] pa.read_record_batch() doesn't work
> 
>
> Key: ARROW-5374
> URL: https://issues.apache.org/jira/browse/ARROW-5374
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: Python
>Reporter: Antoine Pitrou
>Priority: Major
>  Labels: beginner
>
> {code:python}
> >>> batch = pa.RecordBatch.from_arrays([pa.array([b"foo"], type=pa.utf8())], 
> >>> names=['strs'])   
> >>> 
> >>> stream = pa.BufferOutputStream()
> >>> writer = pa.RecordBatchStreamWriter(stream, batch.schema)
> >>> writer.write_batch(batch) 
> >>>   
> >>>
> >>> writer.close()
> >>>   
> >>>
> >>> buf = stream.getvalue()   
> >>>   
> >>>
> >>> pa.read_record_batch(buf, batch.schema)   
> >>>   
> >>>
> Traceback (most recent call last):
>   File "", line 1, in 
> pa.read_record_batch(buf, batch.schema)
>   File "pyarrow/ipc.pxi", line 583, in pyarrow.lib.read_record_batch
> check_status(ReadRecordBatch(deref(message.message.get()),
>   File "pyarrow/error.pxi", line 87, in pyarrow.lib.check_status
> raise ArrowIOError(message)
> ArrowIOError: Expected IPC message of type schema got record batch
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)


[jira] [Updated] (ARROW-5374) [Python] pa.read_record_batch() doesn't work

2019-08-15 Thread lidavidm (JIRA)


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

lidavidm updated ARROW-5374:

Labels: begin  (was: )

> [Python] pa.read_record_batch() doesn't work
> 
>
> Key: ARROW-5374
> URL: https://issues.apache.org/jira/browse/ARROW-5374
> Project: Apache Arrow
>  Issue Type: Bug
>  Components: Python
>Reporter: Antoine Pitrou
>Priority: Major
>  Labels: begin
>
> {code:python}
> >>> batch = pa.RecordBatch.from_arrays([pa.array([b"foo"], type=pa.utf8())], 
> >>> names=['strs'])   
> >>> 
> >>> stream = pa.BufferOutputStream()
> >>> writer = pa.RecordBatchStreamWriter(stream, batch.schema)
> >>> writer.write_batch(batch) 
> >>>   
> >>>
> >>> writer.close()
> >>>   
> >>>
> >>> buf = stream.getvalue()   
> >>>   
> >>>
> >>> pa.read_record_batch(buf, batch.schema)   
> >>>   
> >>>
> Traceback (most recent call last):
>   File "", line 1, in 
> pa.read_record_batch(buf, batch.schema)
>   File "pyarrow/ipc.pxi", line 583, in pyarrow.lib.read_record_batch
> check_status(ReadRecordBatch(deref(message.message.get()),
>   File "pyarrow/error.pxi", line 87, in pyarrow.lib.check_status
> raise ArrowIOError(message)
> ArrowIOError: Expected IPC message of type schema got record batch
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)