Skip to content

Commit 257538d

Browse files
abhinav-qlogicsduskis
authored andcommitted
---
yaml --- r: 27917 b: refs/heads/autosynth-video-intelligence c: dd6d7d7 h: refs/heads/master i: 27915: 398a182
1 parent dec4a4f commit 257538d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

  • branches/autosynth-video-intelligence/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
@@ -115,7 +115,7 @@ refs/heads/autosynth-compute: c0ad4e5b54b2b167d47e508ca215c039404837d3
115115
refs/heads/autosynth-container: d17e1a76a903f9e05eba56a9bf5d12c1b15b67d7
116116
refs/heads/autosynth-monitoring: e66569bd7358a90d17097f90cf8c70dbeeb048cf
117117
refs/heads/autosynth-pubsub: 8aac5a6202d83e8d67f5cb1d58f0adf9f2622aeb
118-
refs/heads/autosynth-video-intelligence: 5c16ac2686ea2c4f2a79f103ac21eca47731d4a4
118+
refs/heads/autosynth-video-intelligence: dd6d7d7b6bc23c580755c5c7fd8e23ce56c67f06
119119
refs/heads/autosynth-vision: c99f959b6acf4840e473f2e67144d00ec52875e5
120120
refs/heads/spanner: b01127f885b4611bf1852abb0ce481eeb7fcc131
121121
refs/tags/v0.68.0: 9cc799fcf68c82ab431d425fefa58ef615ce8e5b

branches/autosynth-video-intelligence/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)