trushev commented on code in PR #5830:
URL: https://github.com/apache/hudi/pull/5830#discussion_r1025146256
##########
hudi-common/src/main/java/org/apache/hudi/internal/schema/utils/InternalSchemaUtils.java:
##########
@@ -286,4 +286,18 @@ public static Map<String, String>
collectRenameCols(InternalSchema oldSchema, In
return e.substring(lastDotIndex == -1 ? 0 : lastDotIndex + 1);
}));
}
+
+ /**
+ * Returns whether passed types are the same.
+ *
+ * @param t1 first type
+ * @param t2 second type
+ * @return true if types are the same
+ */
+ public static boolean isSameType(Type t1, Type t2) {
+ if (t1 instanceof Types.DecimalType && t2 instanceof Types.DecimalType) {
+ return t1.equals(t2);
Review Comment:
Fixed https://github.com/apache/hudi/pull/7228
--
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]