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

    https://github.com/apache/nifi/pull/2570#discussion_r176437061
  
    --- Diff: 
nifi-commons/nifi-record/src/main/java/org/apache/nifi/serialization/record/util/DataTypeUtils.java
 ---
    @@ -432,6 +478,37 @@ public static String toString(final Object value, 
final Supplier<DateFormat> for
                 return formatDate((java.util.Date) value, format);
             }
     
    +        if (value instanceof byte[]) {
    +            return new String((byte[])value, charset);
    +        }
    +
    +        if (value instanceof ByteBuffer) {
    --- End diff --
    
    Same as above, I think we should avoid the use of ByteBuffer here


---

Reply via email to