Skip to content

row count incorrect if data file has more than 2^31 rows #1844

@asfimport

Description

@asfimport

If a parquet file has more than 2^31 rows, the row count written into the file metadata is incorrect.
The cause of the problem is the use of an int instead of long data type for numRows in ParquetMetadataConverter, toParquetMetadata:
int numRows = 0;
for (BlockMetaData block : blocks) {
numRows += block.getRowCount();
addRowGroup(parquetMetadata, rowGroups, block);
}

Reporter: Thomas Friedrich / @tfriedr
Assignee: Thomas Friedrich / @tfriedr

PRs and other links:

Note: This issue was originally created as PARQUET-324. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions