Polber commented on code in PR #32008:
URL: https://github.com/apache/beam/pull/32008#discussion_r1731394456
##########
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/StructUtils.java:
##########
@@ -38,6 +39,20 @@
final class StructUtils {
+ private static final SpannerIO.Read.ToBeamRowFunction
STRUCT_TO_BEAM_ROW_FUNCTION =
+ schema -> (Struct struct) -> structToBeamRow(struct, schema);
+
+ public static SpannerIO.Read.ToBeamRowFunction structToBeamRow() {
+ return STRUCT_TO_BEAM_ROW_FUNCTION;
+ }
+
+ private static final SpannerIO.Read.FromBeamRowFunction
STRUCT_FROM_BEAM_ROW_FUNCTION =
Review Comment:
I'm not sure I understand the question. Are you asking if we need to be
converting the code differently that the existing Row->Struct function?
--
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]