rohangarg commented on code in PR #12828:
URL: https://github.com/apache/druid/pull/12828#discussion_r932491280
##########
extensions-core/avro-extensions/src/main/java/org/apache/druid/data/input/avro/AvroFlattenerMaker.java:
##########
@@ -164,7 +166,7 @@ private Object transformValue(final Object field)
} else if (field instanceof Utf8) {
return field.toString();
} else if (field instanceof List) {
- return ((List<?>)
field).stream().filter(Objects::nonNull).collect(Collectors.toList());
+ return ((List<?>)
field).stream().filter(Objects::nonNull).map(this::transformValue).collect(Collectors.toList());
Review Comment:
this could possibly generate new output for a list which has `ByteBuffer` in
it. But I think if anyone is using this then their data might look absurd since
doing a `toString` on `ByteBuffer` doesn't return the backed bytes.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]