use of io.prestosql.sql.planner.LiteralEncoder in project hetu-core by openlookeng.
the class TestScalarStatsCalculator method testVarbinaryConstant.
@Test
public void testVarbinaryConstant() {
LiteralEncoder literalEncoder = new LiteralEncoder(metadata);
Expression expression = literalEncoder.toExpression(Slices.utf8Slice("ala ma kota"), VARBINARY);
assertCalculate(expression).distinctValuesCount(1.0).lowValueUnknown().highValueUnknown().nullsFraction(0.0);
}
Aggregations