System.out.println("********** Column Groups **********");
for (int i = 0; i < cgschemas.length; i++) {
System.out.println(cgschemas[i]);
System.out.println("--------------------------------");
}
CGSchema cgs1 = cgschemas[0];
CGSchema cgs2 = cgschemas[1];
CGSchema cgs3 = cgschemas[2];
ColumnSchema f11 = cgs1.getSchema().getColumn(0);
Assert.assertEquals("c.r.f1", f11.getName());
Assert.assertEquals(ColumnType.INT, f11.getType());
ColumnSchema f21 = cgs2.getSchema().getColumn(0);
Assert.assertEquals("m1", f21.getName());
Assert.assertEquals(ColumnType.MAP, f21.getType());
ColumnSchema f31 = cgs3.getSchema().getColumn(0);
Assert.assertEquals("c.r.f2", f31.getName());
Assert.assertEquals(ColumnType.INT, f31.getType());
Assert.assertEquals(cgs1.getCompressor(), "gz");
Assert.assertEquals(cgs1.getSerializer(), "pig");
Assert.assertEquals(cgs2.getCompressor(), "lzo");
Assert.assertEquals(cgs2.getSerializer(), "avro");
Assert.assertEquals(cgs3.getCompressor(), "lzo");
Assert.assertEquals(cgs3.getSerializer(), "pig");
System.out.println("*********** Column Map **********");
Map<String, HashSet<Partition.PartitionInfo.ColumnMappingEntry>> colmap = p
.getPartitionInfo().getColMap();
Assert.assertEquals(colmap.size(), 3);