Skip to content

Commit 69e72bf

Browse files
abhinav-qlogicsduskis
authored andcommitted
---
yaml --- r: 35791 b: refs/heads/autosynth-dataproc c: dd6d7d7 h: refs/heads/master i: 35789: eab999f 35787: f978b1b 35783: 3f6941a 35775: ef22aa5
1 parent f06caa3 commit 69e72bf

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ refs/tags/v0.78.0: 62d4bd30605ab3578f9a08d84487fb0b33ac2ff5
165165
refs/tags/v0.79.0: 82287b570708748c411d05c40f3932cff9606feb
166166
refs/tags/v0.80.0: f745e744d38e4fe636f34d0e04795ba3d014287d
167167
refs/tags/v0.81.0: ed3a0c85339ea6b73560b9a570abfbb76b93a263
168-
refs/heads/autosynth-dataproc: 5c16ac2686ea2c4f2a79f103ac21eca47731d4a4
168+
refs/heads/autosynth-dataproc: dd6d7d7b6bc23c580755c5c7fd8e23ce56c67f06
169169
refs/heads/autosynth-securitycenter: b24087060036e623e57d2454ba5dabeaf1e530c5
170170
refs/heads/autosynth-talent: 4ca901879f86aab61091cea52e8a9b653639df24
171171
refs/tags/v0.82.0: 7b9807d5d0a400c757b8905fee768be4c85eba25

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