voonhous commented on code in PR #17953:
URL: https://github.com/apache/hudi/pull/17953#discussion_r2708677496
##########
hudi-common/src/main/java/org/apache/hudi/avro/MercifulJsonConverter.java:
##########
@@ -444,10 +445,10 @@ private static class StringProcessor extends
JsonFieldProcessor {
@Override
public Pair<Boolean, Object> convert(Object value, String name,
HoodieSchema schema) {
if (value instanceof String) {
- return Pair.of(true, value);
+ return Pair.of(true, new Utf8((String) value));
Review Comment:
> is the converter only used for avro record type?
Looks to be the case now IIUC.
--
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]