Skip to content

Commit fd3ebb5

Browse files
authored
---
yaml --- r: 29729 b: refs/heads/autosynth-pubsub c: feb3f6f h: refs/heads/master i: 29727: 2d6ac24
1 parent d83715f commit fd3ebb5

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ refs/tags/v0.67.0: 30b56f02092efc6f3c3667650ea8b8825003e0b7
114114
refs/heads/autosynth-compute: c0ad4e5b54b2b167d47e508ca215c039404837d3
115115
refs/heads/autosynth-container: e9a9a8564756e20770320ed54eafa867040a7690
116116
refs/heads/autosynth-monitoring: f3b29d97f847cecd186ec14aeee04a232aaf0e1b
117-
refs/heads/autosynth-pubsub: 9d0badf355ad3f8fafa972dd65782cedd5653bc2
117+
refs/heads/autosynth-pubsub: feb3f6fdca2b100ef9573dce0cff721fb2db33a2
118118
refs/heads/autosynth-video-intelligence: 82b145665822830c46d47eb8925edb2d842d6815
119119
refs/heads/autosynth-vision: 01ef61bcef344ceee0198f56f18bc1db20201261
120120
refs/heads/spanner: b01127f885b4611bf1852abb0ce481eeb7fcc131

branches/autosynth-pubsub/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets/BigQuerySnippets.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ public boolean deleteDatasetFromId(String projectId, String datasetName) {
207207
// [VARIABLE "my_table_name"]
208208
public boolean deleteTable(String datasetName, String tableName) {
209209
// [START ]
210-
boolean deleted = bigquery.delete(datasetName, tableName);
210+
TableId tableId = TableId.of(datasetName, tableName);
211+
boolean deleted = bigquery.delete(tableId);
211212
if (deleted) {
212213
// the table was deleted
213214
} else {

branches/autosynth-pubsub/google-cloud-examples/src/test/java/com/google/cloud/examples/bigquery/snippets/ITDatasetSnippets.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import com.google.cloud.bigquery.Field;
3232
import com.google.cloud.bigquery.StandardTableDefinition;
3333
import com.google.cloud.bigquery.Table;
34+
import com.google.cloud.bigquery.TableId;
3435
import com.google.cloud.bigquery.testing.RemoteBigQueryHelper;
3536
import java.util.Iterator;
3637
import org.junit.AfterClass;
@@ -128,7 +129,7 @@ public void testListTablesNotEmpty() {
128129
assertEquals(expectedTableName, actualTable.getTableId().getTable());
129130
assertFalse(iterator.hasNext());
130131

131-
bigquery.delete(DATASET, expectedTableName);
132+
bigquery.delete(TableId.of(DATASET, expectedTableName));
132133
}
133134

134135
@Test
@@ -141,7 +142,7 @@ public void testGetTable() {
141142
assertNotNull(actualTable);
142143
assertEquals(expectedTableName, actualTable.getTableId().getTable());
143144

144-
bigquery.delete(DATASET, expectedTableName);
145+
bigquery.delete(TableId.of(DATASET, expectedTableName));
145146
}
146147

147148
@Test
@@ -157,6 +158,6 @@ public void testCreateTable() {
157158
Field actualField = actualTable.getDefinition().getSchema().getFields().get(0);
158159
assertEquals(expectedFieldName, actualField.getName());
159160

160-
bigquery.delete(DATASET, expectedTableName);
161+
bigquery.delete(TableId.of(DATASET, expectedTableName));
161162
}
162163
}

0 commit comments

Comments
 (0)