use of com.facebook.presto.orc.OrcEncoding in project presto by prestodb.
the class TestSliceDictionaryColumnWriter method testSortedDictionaryKeys.
@Test
public void testSortedDictionaryKeys() throws IOException {
for (OrcEncoding orcEncoding : OrcEncoding.values()) {
List<String> sortedKeys = getDictionaryKeys(ImmutableList.of("b", "a", "c"), orcEncoding, true);
assertEquals(sortedKeys, ImmutableList.of("a", "b", "c"));
sortedKeys = getDictionaryKeys(ImmutableList.of("b", "b", "a"), orcEncoding, true);
assertEquals(sortedKeys, ImmutableList.of("a", "b"));
}
}
Aggregations