Skip to content

Commit

Permalink
Not important
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoriceau committed Oct 2, 2023
1 parent 89077b0 commit e396025
Showing 1 changed file with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,12 @@ public void write(UUID id, AirbyteRecordMessage recordMessage) {

@Override
public void write(JsonNode formattedData) throws IOException {

try {
writeChannel.write(ByteBuffer.wrap((Jsons.serialize(formattedData) + "\n").getBytes(Charsets.UTF_8)));
} catch (Exception e) {
LOGGER.error("BigQueryTableWriter");
LOGGER.error(formattedData.toPrettyString());
throw e;
}
writeChannel.write(ByteBuffer.wrap((Jsons.serialize(formattedData) + "\n").getBytes(Charsets.UTF_8)));
}

@Override
public void write(String formattedData) throws IOException {

try {
writeChannel.write(ByteBuffer.wrap((formattedData + "\n").getBytes(Charsets.UTF_8)));
} catch (Exception e) {
LOGGER.error("BigQueryTableWriter", e);
LOGGER.error(formattedData);
throw e;
}
writeChannel.write(ByteBuffer.wrap((formattedData + "\n").getBytes(Charsets.UTF_8)));
}

@Override
Expand Down

0 comments on commit e396025

Please sign in to comment.