Skip to content

Commit

Permalink
chore: clean up IT (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephaniewang526 committed Jan 10, 2020
1 parent 6f95631 commit dee4d1e
Showing 1 changed file with 3 additions and 4 deletions.
Expand Up @@ -68,10 +68,6 @@ public void testRelaxColumnMode() {
"gcloud_test_table_temp_" + UUID.randomUUID().toString().replace('-', '_');
Schema originalSchema =
Schema.of(
// The only supported modification you can make to a column's mode is changing it from
// REQUIRED to NULLABLE
// Changing a column's mode from REQUIRED to NULLABLE is also called column relaxation
// INFO: LegacySQLTypeName will be updated to StandardSQLTypeName in release 1.103.0
Field.newBuilder("word", LegacySQLTypeName.STRING).setMode(Mode.REQUIRED).build(),
Field.newBuilder("word_count", LegacySQLTypeName.STRING)
.setMode(Field.Mode.REQUIRED)
Expand All @@ -87,5 +83,8 @@ public void testRelaxColumnMode() {
// Relax table column mode
RelaxColumnMode.relaxColumnMode(BIGQUERY_DATASET_NAME, generatedTableName);
assertThat(bout.toString()).contains("Table schema successfully relaxed.");

// Clean up
DeleteTable.deleteTable(BIGQUERY_DATASET_NAME, generatedTableName);
}
}

0 comments on commit dee4d1e

Please sign in to comment.