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 2021/11/29 21:48:00 UTC

[GitHub] [beam] TheNeuralBit commented on a change in pull request #16036: [BEAM-11936] Fix errorprone UnusedVariable in IO

TheNeuralBit commented on a change in pull request #16036:
URL: https://github.com/apache/beam/pull/16036#discussion_r758761039



##########
File path: sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryStorageArrowReader.java
##########
@@ -43,9 +42,7 @@
   BigQueryStorageArrowReader(ReadSession readSession) throws IOException {
     protoSchema = readSession.getArrowSchema();
     InputStream input = protoSchema.getSerializedSchema().newInput();
-    this.arrowBeamSchema =
-        ArrowConversion.ArrowSchemaTranslator.toBeamSchema(
-            ArrowConversion.arrowSchemaFromInput(input));
+    ArrowConversion.ArrowSchemaTranslator.toBeamSchema(ArrowConversion.arrowSchemaFromInput(input));

Review comment:
       I worked with @MiguelAnzoWizeline on this. I think it really is dead code, the other BigQueryStorageReader implementation doesn't verify it can be converted to a Beam schema here: https://github.com/apache/beam/blob/9160ba2dfb34ce4cdf1760c24b6e57fb912eb5c1/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryStorageAvroReader.java#L40-L46 




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