Github user gardellajuanpablo commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2480#discussion_r169389143
  
    --- Diff: 
nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/RecordField.java
 ---
    @@ -76,8 +77,12 @@ public RecordField(final String fieldName, final 
DataType dataType, final Object
             } else {
                 this.aliases = Collections.unmodifiableSet(aliases);
             }
    -
    -        this.defaultValue = defaultValue;
    +        if (RecordFieldType.ARRAY.equals(dataType.getFieldType()) && 
(defaultValue instanceof String
    +                || defaultValue instanceof Number || defaultValue 
instanceof Boolean)) {
    --- End diff --
    
    Yes, it solves the reported issue, but it makes the test fails. It is 
required to think another solution approach. It is not as simple I initially 
thought


---

Reply via email to