use of io.trino.spi.connector.BucketFunction in project trino by trinodb.
the class TestRaptorBucketFunction method testInteger.
@Test
public void testInteger() {
BucketFunction function = bucketFunction(50, INTEGER);
assertEquals(getBucket(function, createIntsBlock(454345325)), 16);
assertEquals(getBucket(function, createIntsBlock(365363)), 42);
assertEquals(getBucket(function, createIntsBlock(45645747)), 41);
assertEquals(getBucket(function, createIntsBlock(3244)), 29);
}
Aggregations