prodriguezdefino commented on code in PR #32512: URL: https://github.com/apache/beam/pull/32512#discussion_r1801863931
########## sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BeamRowToStorageApiProto.java: ########## @@ -272,6 +286,8 @@ private static Object messageValueFromRowValue( if (value == null) { if (fieldDescriptor.isOptional()) { return null; + } else if (fieldDescriptor.isRepeated()) { Review Comment: Keeping the return value as null. It seems that the previous code will fail in the case of having a schema with a simple array of strings as a field and marking it as nullable. By adding this check here it also fixes that case. Adding a test to check those particularities. -- 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-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org