You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "kennknowles (via GitHub)" <gi...@apache.org> on 2023/04/19 18:37:24 UTC

[GitHub] [beam] kennknowles commented on a diff in pull request #26352: Implement naive progress tracking at BoundedSourceAsSDFRestrictionTracker

kennknowles commented on code in PR #26352:
URL: https://github.com/apache/beam/pull/26352#discussion_r1171724685


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/io/Read.java:
##########
@@ -442,6 +443,19 @@ public void checkDone() throws IllegalStateException {
       public IsBounded isBounded() {
         return IsBounded.BOUNDED;
       }
+
+      @Override
+      public Progress getProgress() {
+        if (currentReader == null) {
+          return null;

Review Comment:
   Noting that the return value is not `@Nullable`. Suggest re-enabling nullness checking here since it would have caught this. (you could perhaps suppress it for other parts of the file you don't want to fix.



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org