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


##########
hudi-common/src/main/java/org/apache/hudi/avro/MercifulJsonConverter.java:
##########
@@ -44,8 +45,14 @@ public class MercifulJsonConverter {
 
   private static final Map<Schema.Type, JsonToAvroFieldProcessor> 
FIELD_TYPE_PROCESSORS = getFieldTypeProcessors();
 
+  // For each schema (keyed by full name), stores a mapping of schema field 
name to json field name to account for sanitization of fields
+  private static final Map<String, Map<String, String>> 
SANITIZED_FIELD_MAPPINGS = new ConcurrentHashMap<>();

Review Comment:
   we should clear this for every fetch. If not, schema evolution might have 
issues



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