Skip to content

Commit 4e3aa49

Browse files
abhinav-qlogicsduskis
authored andcommitted
---
yaml --- r: 26755 b: refs/heads/autosynth-talent c: dd6d7d7 h: refs/heads/master i: 26753: 85a5c0f 26751: 2f3797b
1 parent 018fa14 commit 4e3aa49

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
@@ -170,7 +170,7 @@ refs/tags/v0.80.0: f745e744d38e4fe636f34d0e04795ba3d014287d
170170
refs/tags/v0.81.0: ed3a0c85339ea6b73560b9a570abfbb76b93a263
171171
refs/heads/autosynth-dataproc: 812eb0e76f4543bffe59701872476c4b5b7415f5
172172
refs/heads/autosynth-securitycenter: 943d3d634f541c25b1b33aa71f321cd90f804d31
173-
refs/heads/autosynth-talent: 5c16ac2686ea2c4f2a79f103ac21eca47731d4a4
173+
refs/heads/autosynth-talent: dd6d7d7b6bc23c580755c5c7fd8e23ce56c67f06
174174
refs/heads/cscc-samples: 620d105e6b574cfeeee04e413a157b7bd34ebc8b
175175
refs/heads/igorbernstein2-patch-1: f62464ee14df1e44a3b173cdc3976563d1b3078b
176176
refs/heads/mrschmidt-collectiongroup: a6d948bf3731a7e1ce1fcd3db8ab733a3c9b17de

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