public class CorruptStatistics extends Object
This class is used to detect whether a file was written with this bug, and thus it's statistics should be ignored / not trusted.
| Constructor and Description |
|---|
CorruptStatistics() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
shouldIgnoreStatistics(String createdBy,
PrimitiveType.PrimitiveTypeName columnType)
Decides if the statistics from a file created by createdBy (the created_by field from parquet format)
should be ignored because they are potentially corrupt.
|
public static boolean shouldIgnoreStatistics(String createdBy, PrimitiveType.PrimitiveTypeName columnType)
createdBy - the created-by string from a file footercolumnType - the type of the column that this is checkingCopyright © 2023 The Apache Software Foundation. All rights reserved.