[Python] read_row_group fails with Nested data conversions not implemented for chunked array outputs
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
Hey, I'm trying to concatenate two files and to avoid reading everything to memory at once, I wanted to use `read_row_group` for my solution, but it fails.
I think it's due to fields like these:
`pyarrow.Field>`
But I'm not sure. Is this a duplicate? The issue linked in the code is resolved https://github.com/apache/arrow/blob/fd0b90a7f7e65fde32af04c4746004a1240914cf/cpp/src/parquet/arrow/reader.cc#L915
Stacktrace is
` File "/data/teftel/teftel-data/teftel_data/parquet_stream.py", line 163, in read_batches`
` table = pf.read_row_group(ix, columns=self._columns)`
` File "/home/kuba/.local/share/virtualenvs/teftel-o6G5iH_l/lib/python3.6/site-packages/pyarrow/parquet.py", line 186, in read_row_group`
` use_threads=use_threads)`
` File "pyarrow/_parquet.pyx", line 695, in pyarrow._parquet.ParquetReader.read_row_group`
` File "pyarrow/error.pxi", line 89, in pyarrow.lib.check_status`
`pyarrow.lib.ArrowNotImplementedError: Nested data conversions not implemented for chunked array outputs`
**Reporter**: [Jakub Okoński](https://issues.apache.org/jira/browse/ARROW-5030)
#### Related issues:
- [[C++] Support nested data conversions for chunked array](https://github.com/apache/arrow/issues/32723) (is duplicated by)
- [[C++][Parquet] 16MB limit on (nested) column chunk prevents tuning row_group_size](https://github.com/apache/arrow/issues/21216) (relates to)
- [[C++] Parquet arrow::Table reads error when overflowing capacity of BinaryArray](https://github.com/apache/arrow/issues/20081) (relates to)
**Note**: *This issue was originally created as [ARROW-5030](https://issues.apache.org/jira/browse/ARROW-5030). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start at pyarrow/parquet.py in read_row_group and the C++ reader.cc location linked in the report, then reproduce the failure with nested list fields and chunked array output. Done means read_row_group no longer raises ArrowNotImplementedError for nested data conversions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, python
- Domain
- data-engineering
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100