jonvex commented on code in PR #8010:
URL: https://github.com/apache/hudi/pull/8010#discussion_r1118919827


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/SourceFormatAdapter.java:
##########
@@ -97,6 +101,7 @@ public InputBatch<JavaRDD<GenericRecord>> 
fetchNewDataInAvroFormat(Option<String
       case JSON: {
         //sanitizing is done inside the convertor if enabled
         InputBatch<JavaRDD<String>> r = ((Source<JavaRDD<String>>) 
source).fetchNext(lastCkptStr, sourceLimit);
+        
MercifulJsonConverter.clearCache(r.getSchemaProvider().getSourceSchema().getFullName());

Review Comment:
   In fecthNewDataInRowFormat, if sanitizing is enabled, it will call 
fetchNewDataInAvroFormat so that will hit this and clear the cache. Otherwise 
it isn't sanitizing so the map isn't used



-- 
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]

Reply via email to