You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Antoine Pitrou (JIRA)" <ji...@apache.org> on 2018/08/28 09:25:00 UTC
[jira] [Resolved] (ARROW-3049) [C++/Python] ORC reader fails on
empty file
[ https://issues.apache.org/jira/browse/ARROW-3049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Antoine Pitrou resolved ARROW-3049.
-----------------------------------
Resolution: Fixed
Issue resolved by pull request 2449
[https://github.com/apache/arrow/pull/2449]
> [C++/Python] ORC reader fails on empty file
> -------------------------------------------
>
> Key: ARROW-3049
> URL: https://issues.apache.org/jira/browse/ARROW-3049
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++
> Affects Versions: 0.10.0
> Reporter: Antoine Pitrou
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.11.0
>
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> {code}
> Traceback (most recent call last):
> File "/home/antoine/arrow/python/pyarrow/tests/test_orc.py", line 83, in test_orcfile_empty
> check_example('TestOrcFile.emptyFile')
> File "/home/antoine/arrow/python/pyarrow/tests/test_orc.py", line 79, in check_example
> os.path.join(orc_data_dir, '%s.jsn.gz' % name))
> File "/home/antoine/arrow/python/pyarrow/tests/test_orc.py", line 62, in check_example_files
> table = orc_file.read()
> File "/home/antoine/arrow/python/pyarrow/orc.py", line 149, in read
> return self.reader.read(include_indices=include_indices)
> File "pyarrow/_orc.pyx", line 106, in pyarrow._orc.ORCReader.read
> check_status(deref(self.reader).Read(&sp_table))
> File "pyarrow/error.pxi", line 81, in pyarrow.lib.check_status
> raise ArrowInvalid(message)
> pyarrow.lib.ArrowInvalid: Must pass at least one record batch
> {code}
> [~jim.crist]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)