Abacn commented on code in PR #27619:
URL: https://github.com/apache/beam/pull/27619#discussion_r1281261196
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryUtils.java:
##########
@@ -710,7 +710,7 @@ public static Row toBeamRow(Schema rowSchema, TableSchema
bqSchema, TableRow jso
(!innerTypeIsMap && v instanceof Map)
? ((Map<String, Object>) v).get("v")
: v)
- .map(v -> toBeamValue(fieldType.getCollectionElementType(), v))
+ .map(v -> toBeamRowFieldValue(Field.of("v",
fieldType.getCollectionElementType()), v))
Review Comment:
Merge toBeamRowFieldValue and toBeamValue sounds also a good choice. If do
so we may need to change toBeamValue's signature to (Field, Object), To retain
the ability to get the Field name in the error message here
https://github.com/apache/beam/blob/d658e8d141a9db7c972854ad75a140540af99aa5/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryUtils.java#L639
--
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]