rworley-monster commented on a change in pull request #12389:
URL: https://github.com/apache/beam/pull/12389#discussion_r462906573
##########
File path:
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryUtils.java
##########
@@ -442,6 +450,17 @@ private static Object fromBeamField(FieldType fieldType,
Object fieldValue) {
}
return convertedItems;
+ case MAP:
+ Map<?, ?> pairs = (Map<?, ?>) fieldValue;
+ convertedItems = Lists.newArrayListWithCapacity(pairs.size());
+ for (Map.Entry<?, ?> pair : pairs.entrySet()) {
+ HashMap<String, Object> item = new HashMap<>(2);
Review comment:
Ok, I will return a List of TableRows instead of Maps.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]