voonhous commented on code in PR #17953:
URL: https://github.com/apache/hudi/pull/17953#discussion_r2706706618
##########
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:
Not sure, gonna trigger the CI to see where the tests are failing.
From what I can see via tracing, it's used in any JSON source that has
`HoodieRecordType.AVRO`.
If it's SPARK, it will use RowConverter utils.
--
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]