use of org.apache.drill.exec.store.hive.ColumnListsCache in project drill by apache.
the class TestColumnListCache method testPartitionColumnsIndex.
@Test
public void testPartitionColumnsIndex() {
ColumnListsCache cache = new ColumnListsCache();
List<FieldSchema> columns = Lists.newArrayList();
columns.add(new FieldSchema("f1", "int", null));
columns.add(new FieldSchema("f2", "int", null));
cache.addOrGet(columns);
columns.add(new FieldSchema("f3", "int", null));
assertEquals(1, cache.addOrGet(columns));
}
Aggregations