HiveMetastores.setTestClient(hiveServer.getClient());
}
@Test
public void testCheck() throws Exception {
VertexToHive vertexToHive = new HiveOutputIntIntVertex();
HiveOutputDescription outputDesc = new HiveOutputDescription();
HiveTableSchema schema = TestSchema.builder()
.addColumn("foo", HiveType.LONG)
.addColumn("bar", HiveType.LONG)
.build();
vertexToHive.checkOutput(outputDesc, schema, newWritableRecord(schema));
schema = TestSchema.builder()
.addColumn("foo", HiveType.INT)
.addColumn("bar", HiveType.LONG)
.build();