[ 
https://issues.apache.org/jira/browse/BEAM-7274?focusedWorklogId=362293&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-362293
 ]

ASF GitHub Bot logged work on BEAM-7274:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 22/Dec/19 13:03
            Start Date: 22/Dec/19 13:03
    Worklog Time Spent: 10m 
      Work Description: alexvanboxel commented on pull request #10449: 
[BEAM-7274] Implement the Protobuf schema provider for compiled protocol buffers
URL: https://github.com/apache/beam/pull/10449#discussion_r360701462
 
 

 ##########
 File path: 
sdks/java/core/src/main/java/org/apache/beam/sdk/values/RowWithGetters.java
 ##########
 @@ -122,6 +123,15 @@ private Iterable getIterableValue(FieldType elementType, 
Object fieldValue) {
                   cacheKey, i -> getMapValue(type.getMapKeyType(), 
type.getMapValueType(), map))
           : (T) getMapValue(type.getMapKeyType(), type.getMapValueType(), map);
     } else {
+      if (type.isLogicalType(OneOfType.IDENTIFIER)) {
+        OneOfType oneOfType = type.getLogicalType(OneOfType.class);
+        OneOfType.Value oneOfValue = (OneOfType.Value) fieldValue;
+        Object convertedOneOfField =
+            getValue(oneOfValue.getFieldType(), oneOfValue.getValue(), null);
+        return (T)
 
 Review comment:
   Will this not generate a different type for each message. If conversion 
happens here as a user of the getValue you don't have a way to see what the 
effective type and field was. Why not return the LogicalTypes? 
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 362293)
    Time Spent: 19h 10m  (was: 19h)

> Protobuf Beam Schema support
> ----------------------------
>
>                 Key: BEAM-7274
>                 URL: https://issues.apache.org/jira/browse/BEAM-7274
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Alex Van Boxel
>            Assignee: Alex Van Boxel
>            Priority: Minor
>          Time Spent: 19h 10m
>  Remaining Estimate: 0h
>
> Add support for the new Beam Schema to the Protobuf extension.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to