stankiewicz commented on code in PR #38231:
URL: https://github.com/apache/beam/pull/38231#discussion_r3117253793
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/StorageApiWriteUnshardedRecords.java:
##########
@@ -760,7 +760,11 @@ long flush(
error.getRowIndexToErrorMessage().get(failedIndex),
tableDestination.getTableReference());
} catch (Exception e) {
- LOG.error("Failed to insert row and could not parse the
result!", e);
+ String msg =
+ String.format(
+ "Failed to insert row and could not parse the
result! Insert error: %s",
+
error.getRowIndexToErrorMessage().get(failedIndex));
Review Comment:
Slf4jFormatShouldBeConst
LOG.error("Failed to insert row and could not parse the result! Insert
error: %s", error.getRowIndexToErrorMessage().get(failedIndex), e);
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]