use of com.amazonaws.services.glue.model.TableInput in project presto by prestodb.
the class TestGlueInputConverter method testConvertTable.
@Test
public void testConvertTable() {
TableInput tblInput = GlueInputConverter.convertTable(testTbl);
assertEquals(tblInput.getName(), testTbl.getTableName());
assertEquals(tblInput.getOwner(), testTbl.getOwner());
assertEquals(tblInput.getTableType(), testTbl.getTableType().toString());
assertEquals(tblInput.getParameters(), testTbl.getParameters());
assertColumnList(tblInput.getStorageDescriptor().getColumns(), testTbl.getDataColumns());
assertColumnList(tblInput.getPartitionKeys(), testTbl.getPartitionColumns());
assertStorage(tblInput.getStorageDescriptor(), testTbl.getStorage());
assertEquals(tblInput.getViewExpandedText(), testTbl.getViewExpandedText().get());
assertEquals(tblInput.getViewOriginalText(), testTbl.getViewOriginalText().get());
}
Aggregations