You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "ahmedabu98 (via GitHub)" <gi...@apache.org> on 2024/05/31 14:18:57 UTC
Re: [PR] Support unknown nested repeated STRUCTs [beam]
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-L1042
--
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