linliu-code commented on code in PR #13517:
URL: https://github.com/apache/hudi/pull/13517#discussion_r2221165990
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -89,6 +93,39 @@ public static String getOrderingField(Properties properties)
{
return orderField;
}
+ /**
+ * Returns whether event time watermark tracking is enabled.
+ */
+ public static boolean isTrackingEventTimeWatermark(Properties props) {
+ String payloadClass = getPayloadClass(props);
+ return (!StringUtils.isNullOrEmpty(payloadClass))
+ && payloadClass.equals(DefaultHoodieRecordPayload.class.getName());
+ }
+
+ /**
+ * Check if event time metadata should be tracked.
+ */
+ public static boolean shouldKeepEventTimeMetadata(TypedProperties props) {
Review Comment:
Done.
--
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]