Skip to content

[BUG] Exception when a column only contains nan values #189

Description

@ebsklm

Parquet Viewer Version

4.2.0.0

Where was the parquet file created?

Created with PyArrow version 25.0.0. Also tried with version 23.0.1, same result.

Sample File

Below file is a .parquet file, however unable to upload with extension .parquet. Change back to .parquet for testing!
f.txt

Describe the bug

When a field is selected that only contains nan values, ParquetViewer is throwing below exception.

Image

Reading the exception, I suspect this has to do with missing statistics in the metadata. Where a normal column has information about the min and max value in the statistics, a columns with only nan values does not. Screenshot from the provided example file below.

Image

Reading the example file with Pyarrow works as expected.

Screenshots

Screenshots in description.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions