private static com.amazonaws.services.glue.model.Column convertColumn(Column prestoColumn) { return new com.amazonaws.services.glue.model.Column() .withName(prestoColumn.getName()) .withType(prestoColumn.getType().toString()) .withComment(prestoColumn.getComment().orElse(null)); } }
@Test public void testConvertTableUppercaseColumnType() { com.amazonaws.services.glue.model.Column uppercaseCol = getGlueTestColumn().withType("String"); testTbl.getStorageDescriptor().setColumns(ImmutableList.of(uppercaseCol)); GlueToPrestoConverter.convertTable(testTbl, testDb.getName()); }
public static Column getGlueTestColumn() { return new Column() .withName("test-col" + generateRandom()) .withType("string") .withComment("column comment"); }
private static com.amazonaws.services.glue.model.Column convertColumn(Column prestoColumn) { return new com.amazonaws.services.glue.model.Column() .withName(prestoColumn.getName()) .withType(prestoColumn.getType().toString()) .withComment(prestoColumn.getComment().orElse(null)); } }
@Test public void testConvertTableUppercaseColumnType() { com.amazonaws.services.glue.model.Column uppercaseCol = getGlueTestColumn().withType("String"); testTbl.getStorageDescriptor().setColumns(ImmutableList.of(uppercaseCol)); GlueToPrestoConverter.convertTable(testTbl, testDb.getName()); }
@Test public void testConvertTableUppercaseColumnType() { com.amazonaws.services.glue.model.Column uppercaseCol = getGlueTestColumn().withType("String"); testTbl.getStorageDescriptor().setColumns(ImmutableList.of(uppercaseCol)); GlueToPrestoConverter.convertTable(testTbl, testDb.getName()); }
@Test public void testConvertTableUppercaseColumnType() { com.amazonaws.services.glue.model.Column uppercaseCol = getGlueTestColumn().withType("String"); testTbl.getStorageDescriptor().setColumns(ImmutableList.of(uppercaseCol)); GlueToPrestoConverter.convertTable(testTbl, testDb.getName()); }
public static Column getGlueTestColumn() { return new Column() .withName("test-col" + generateRandom()) .withType("string") .withComment("column comment"); }
public static Column getGlueTestColumn() { return new Column() .withName("test-col" + generateRandom()) .withType("string") .withComment("column comment"); }
public static Column getGlueTestColumn() { return new Column() .withName("test-col" + generateRandom()) .withType("string") .withComment("column comment"); }