danny0405 commented on code in PR #12683:
URL: https://github.com/apache/hudi/pull/12683#discussion_r1924575337


##########
hudi-common/src/main/java/org/apache/hudi/avro/AvroSchemaUtils.java:
##########
@@ -174,7 +174,18 @@ private static boolean isAtomicSchemasCompatible(Schema 
oneAtomicType, Schema an
    * </ol>
    */
   public static boolean isStrictProjectionOf(Schema sourceSchema, Schema 
targetSchema) {
-    return isProjectionOfInternal(sourceSchema, targetSchema, Objects::equals);
+    return isProjectionOfInternal(sourceSchema, targetSchema, 
AvroSchemaUtils::isAtomicTypeStrictProject);
+  }
+
+  private static boolean isAtomicTypeStrictProject(Schema source, Schema 
target) {

Review Comment:
   isAtomicTypeEquals ?



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