@Test
public void testRoundTripDescriptorNoCompressionProperty() throws Exception {
String namespace = "test_ns";
String name = "test_table";
DatasetDescriptor original = new DatasetDescriptor.Builder()
.schemaUri("resource:schema/user.avsc")
.location("file:/tmp/data/test_table")
.build();
boolean external = true;
Table table = HiveUtils.tableForDescriptor(namespace, name, original, external);
assertEquals("snappy", table.getParameters().get("kite.compression.type"));
table.getParameters().remove("kite.compression.type");
Configuration conf = new HiveConf();
DatasetDescriptor result = HiveUtils.descriptorForTable(conf, table);
assertEquals(original, result);
}