Aryankn29 commented on code in PR #39124:
URL: https://github.com/apache/beam/pull/39124#discussion_r3640651691
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java:
##########
@@ -2105,9 +2105,12 @@ public static <T> void readSource(
// the same order.
BoundedSource.BoundedReader<T> reader =
streamSource.createReader(options);
+ T current = null;
+ boolean hasCurrent = false;
try {
if (reader.start()) {
- outputReceiver.get(rowTag).output(reader.getCurrent());
+ current = java.util.Objects.requireNonNull(reader.getCurrent(),
"Reader returned null element");
Review Comment:
Thanks, fixed by running Spotless on the current PR branch and pushing the
formatting update.
--
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]