use of com.facebook.presto.orc.metadata.statistics.DecimalColumnStatistics in project presto by prestodb.
the class TestTupleDomainOrcPredicate method decimalColumnStats.
private static ColumnStatistics decimalColumnStats(Long numberOfValues, String minimum, String maximum) {
BigDecimal minimumDecimal = minimum == null ? null : new BigDecimal(minimum);
BigDecimal maximumDecimal = maximum == null ? null : new BigDecimal(maximum);
return new DecimalColumnStatistics(numberOfValues, null, new DecimalStatistics(minimumDecimal, maximumDecimal, SHORT_DECIMAL_VALUE_BYTES));
}
Aggregations