You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "chris stockton (Jira)" <ji...@apache.org> on 2022/12/16 04:49:00 UTC

[jira] [Created] (PARQUET-2219) ParquetFileReader throws a runtime exception when a file contains only headers and now row data

chris stockton created PARQUET-2219:
---------------------------------------

             Summary: ParquetFileReader throws a runtime exception when a file contains only headers and now row data
                 Key: PARQUET-2219
                 URL: https://issues.apache.org/jira/browse/PARQUET-2219
             Project: Parquet
          Issue Type: Bug
          Components: parquet-mr
    Affects Versions: 1.12.1
            Reporter: chris stockton


Google BigQuery has an option to export table data to Parquet-formatted files, but some of these files are written with header data only.  When this happens and these files are opened with the ParquetFileReader, an exception is thrown:

{{RuntimeException("Illegal row group of 0 rows");}}

It seems like the ParquetFileReader should not throw an exception when it encounters such a file.

https://github.com/apache/parquet-mr/blob/master/parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileReader.java#L949



--
This message was sent by Atlassian Jira
(v8.20.10#820010)