srinipunuru commented on a change in pull request #916: End to end test case for union type with subRecord URL: https://github.com/apache/samza/pull/916#discussion_r256547872
########## File path: samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java ########## @@ -207,7 +207,11 @@ static public Object convertToAvroObject(Object relObj, Schema schema) { .collect(Collectors.toMap(Map.Entry::getKey, e -> convertToAvroObject(e.getValue(), getNonNullUnionSchema(schema).getValueType()))); case UNION: - return convertToAvroObject(relObj, getNonNullUnionSchema(schema)); + for (Schema unionSchema : schema.getTypes()) { Review comment: I already updated the linkedIn version to unblock the customer. I will open a bug to remove the LI one and use the open source version. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services