You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "pmarks (via GitHub)" <gi...@apache.org> on 2025/11/12 19:57:32 UTC
[I] Error reading parquet FileMetaData with empty lists encoded as element-type=0 [arrow-rs]
pmarks opened a new issue, #8826:
URL: https://github.com/apache/arrow-rs/issues/8826
I have a collection of parquet files that started throwing ParquetError::General("Unexpected list/set element type0") when parsing FileMetaData. They hit [this error path](https://github.com/apache/arrow-rs/blob/5a1a13a7b39cef7ee71011a1f42f11338e6acd5d/parquet/src/parquet_thrift.rs#L225), due to having an ElementType of 0, and a length of 0 in the FileMetaData.row_groups.columns.meta_data.key_value_metadata list header. In the spec, an [empty-map](https://github.com/apache/thrift/blob/master/doc/specs/thrift-compact-protocol.md#map) with an element-type of 0 is allowed for maps, but doesn't seem to be explicitly allowed for lists. So perhaps these files are technically out of spec, but I haven't yet encountered a reader that rejected them, and I have used a variety of tools with these files. The parquet files were created with "fastparquet-python version 2024.2.0 (build 0)".
I don't have an easy way to share the filea - one can be downloaded [here](https://cf.10xgenomics.com/samples/xenium/1.5.0/Xenium_V1_hPancreas_nondiseased_section/Xenium_V1_hPancreas_nondiseased_section_outs.zip) - *NOTE: 6GB download* - get the `transcripts.parquet` file out of the zip archive.
I bisected this crash to #8530. @etseidl
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error reading parquet FileMetaData with empty lists encoded as element-type=0 [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #8826: Error reading parquet FileMetaData with empty lists encoded as element-type=0
URL: https://github.com/apache/arrow-rs/issues/8826
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error reading parquet FileMetaData with empty lists encoded as element-type=0 [arrow-rs]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb commented on issue #8826:
URL: https://github.com/apache/arrow-rs/issues/8826#issuecomment-3553627278
`label_issue.py` automatically added labels {'parquet'} from #8827
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error reading parquet FileMetaData with empty lists encoded as element-type=0 [arrow-rs]
Posted by "etseidl (via GitHub)" <gi...@apache.org>.
etseidl commented on issue #8826:
URL: https://github.com/apache/arrow-rs/issues/8826#issuecomment-3523819764
Thanks. I'll admit to not being a huge fan of `fastparquet`. This isn't the first time it's generated non-conforming files.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error reading parquet FileMetaData with empty lists encoded as element-type=0 [arrow-rs]
Posted by "pmarks (via GitHub)" <gi...@apache.org>.
pmarks commented on issue #8826:
URL: https://github.com/apache/arrow-rs/issues/8826#issuecomment-3523803533
@etseidl awesome thanks so much. I was able to make a tiny reproducing parquet with the following script, using `fastparquet=2024.02`
Here's the file in case it's useful:
[test.zip](https://github.com/user-attachments/files/23509361/test.zip)
```python
import pandas
import fastparquet
def main():
df = pandas.DataFrame({"a": range(100), "b": range(100)})
fastparquet.write('outfile.pq', df)
if __name__ == "__main__":
main()
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Error reading parquet FileMetaData with empty lists encoded as element-type=0 [arrow-rs]
Posted by "etseidl (via GitHub)" <gi...@apache.org>.
etseidl commented on issue #8826:
URL: https://github.com/apache/arrow-rs/issues/8826#issuecomment-3523724849
Thanks for the report!
It seems the original implementation (which uses that from the thrift crate), allows for an element type of `TType::Stop`. I guess we should do the same.
I think we can exit early if the `type|length` is 0.
I'll get a PR up for this soon.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org