zhangjun0x01 opened a new issue #2161: URL: https://github.com/apache/iceberg/issues/2161
In method `org.apache.iceberg.spark.SparkTableUtil#listAvroPartition` ,when we list the file to structure `DataFile`,the `recordCount` is missing, the `recordCount` of `Metrics` is -1, and also not be set by `DataFiles.builder(spec).withRecordCount()`,but the recordCount is required. `org.apache.iceberg.DataFiles.Builder#build` method will check the recordCount ``` Preconditions.checkArgument(recordCount >= 0, "Record count is required"); ``` ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
