chamikaramj commented on code in PR #21739:
URL: https://github.com/apache/beam/pull/21739#discussion_r891719608
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryStorageStreamSource.java:
##########
@@ -355,6 +356,7 @@ public synchronized BigQueryStorageStreamSource<T>
getCurrentSource() {
.build(),
source.readSession.getTable());
newResponseIterator = newResponseStream.iterator();
+ newResponseIterator.hasNext();
Review Comment:
Probably let's add a log line here describing why this call is important.
For someone who doesn't understand the details regarding the BQ API, it's just
an ignored hasNext call which might be removed in the future cleanups.
Also, does this points to an issue with the API ?
--
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]