ahmedabu98 commented on code in PR #31447:
URL: https://github.com/apache/beam/pull/31447#discussion_r1622495897
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/TableRowToStorageApiProto.java:
##########
@@ -524,6 +532,15 @@ public static DynamicMessage messageFromMap(
if (value != null) {
builder.setField(fieldDescriptor, value);
}
+ // For STRUCT fields, we add a placeholder to unknownFields using the
getNestedUnknown
+ // supplier (in case we encounter unknown nested fields). If the
placeholder comes out
+ // to be empty, we should clean it up
+ if
(fieldSchemaInformation.getType().equals(TableFieldSchema.Type.STRUCT)
Review Comment:
FYI this happens here:
https://github.com/apache/beam/blob/f410b71c076dc4d7b75fc7b018bbebce8c35782c/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/TableRowToStorageApiProto.java#L1031-L1040
--
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]