shanthoosh commented on a change in pull request #1401:
URL: https://github.com/apache/samza/pull/1401#discussion_r457578251



##########
File path: 
samza-sql/src/main/java/org/apache/samza/sql/avro/AvroRelConverter.java
##########
@@ -125,11 +125,18 @@ public static void 
fetchFieldNamesAndValuesFromIndexedRecord(IndexedRecord recor
         .collect(Collectors.toList()));
   }
 
-  private static SamzaSqlRelRecord convertToRelRecord(IndexedRecord 
avroRecord, Schema schema) {
+  private static SamzaSqlRelRecord convertToRelRecord(IndexedRecord 
avroRecord) {
     List<Object> fieldValues = new ArrayList<>();
     List<String> fieldNames = new ArrayList<>();
     if (avroRecord != null) {
-      fetchFieldNamesAndValuesFromIndexedRecord(avroRecord, fieldNames, 
fieldValues, schema);
+      fieldNames.addAll(

Review comment:
       Done. Added unit tests for Avro record conversion with non-nullable 
union type.




----------------------------------------------------------------
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]


Reply via email to