Skip to content

Commit b0a5ef9

Browse files
abhinav-qlogicsduskis
authored andcommitted
---
yaml --- r: 23555 b: refs/heads/autosynth-dialogflow c: dd6d7d7 h: refs/heads/master i: 23553: 7a09570 23551: a8f3779
1 parent 7ffebcb commit b0a5ef9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

  • branches/autosynth-dialogflow/google-cloud-examples/src/main/java/com/google/cloud/examples/bigquery/snippets

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ refs/heads/autosynth-bigtable: 9e5429f45cf9face9fed585d0233534993e36b58
128128
refs/heads/autosynth-bigtable-admin: 6379a2bc712f2736c83de0e009b4d26da4fa82ca
129129
refs/heads/autosynth-containeranalysis: af5b804492292b43372c9fe00386696136ccae89
130130
refs/heads/autosynth-datastore: d0fc1187000c7a50d8bddd89c3b7cdf1187ecb96
131-
refs/heads/autosynth-dialogflow: 5c16ac2686ea2c4f2a79f103ac21eca47731d4a4
131+
refs/heads/autosynth-dialogflow: dd6d7d7b6bc23c580755c5c7fd8e23ce56c67f06
132132
refs/heads/autosynth-errorreporting: 1101a04e8be074802c35332d5fcf8297f61cae32
133133
refs/heads/autosynth-firestore: d1a44f9acc302750e37b008ecb9c1aa535cc94df
134134
refs/heads/autosynth-iot: f03bdd338a9056ca3b7ea6d9ca901649ba9aab78

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,8 @@ public long writeFileToTable(String datasetName, String tableName, Path csvPath,
383383
// Write data to writer
384384
try (OutputStream stream = Channels.newOutputStream(writer)) {
385385
Files.copy(csvPath, stream);
386+
} finally {
387+
writer.close();
386388
}
387389
// Get load job
388390
Job job = writer.getJob();

0 commit comments

Comments
 (0)