10000 Bigquery : Fix close write channel by abhinav-qlogic · Pull Request #4924 · googleapis/google-cloud-java · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,8 @@ public long writeFileToTable(String datasetName, String tableName, Path csvPath,
// Write data to writer
try (OutputStream stream = Channels.newOutputStream(writer)) {
Files.copy(csvPath, stream);
} finally {
writer.close();
}
// Get load job
Job job = writer.getJob();
Expand Down
0