You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/07/23 01:31:38 UTC

[GitHub] [beam] steveniemitz commented on a diff in pull request #22289: Fix overly aggressive null check in RowWriterFactory

steveniemitz commented on code in PR #22289:
URL: https://github.com/apache/beam/pull/22289#discussion_r928061849


##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/RowWriterFactory.java:
##########
@@ -135,10 +136,12 @@ BigQueryRowWriter<ElementT> createRowWriter(String tempFilePrefix, DestinationT
         throw new IllegalStateException(
             "createRowWriter called when schemaFactory is null; forgot to call prepare()?");
       }
+      @SuppressWarnings({

Review Comment:
   given that `schemaFactory` here is a `SerializableFunction`, I don't think that's really feasible.  Doing so would cause a large amount of checker failures elsewhere, and changing the interface would be a breaking API change.
   
   Did you have something else in mind?



-- 
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