linliu-code commented on code in PR #13517:
URL: https://github.com/apache/hudi/pull/13517#discussion_r2225335601
##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -96,6 +98,30 @@ public static String getPayloadClass(Properties props) {
return HoodieRecordPayload.getPayloadClassName(props);
}
+ /**
+ * Check if event time metadata should be tracked.
+ */
+ public static boolean shouldTrackEventTimeWaterMarkByConfig(TypedProperties
props) {
+ return props.getBoolean("hoodie.write.track.event.time.watermark", false);
+ }
+
+ /**
+ * Check if logical timestamp should be made consistent.
+ */
+ public static boolean shouldKeepConsistentLogicalTimestamp(TypedProperties
props) {
+ return Boolean.parseBoolean(props.getProperty(
+ KEYGENERATOR_CONSISTENT_LOGICAL_TIMESTAMP_ENABLED.key(),
+ KEYGENERATOR_CONSISTENT_LOGICAL_TIMESTAMP_ENABLED.defaultValue()));
+ }
+
+ /**
+ * Extract event_time field name from configuration.
+ */
+ @Nullable
+ public static String getEventTimeFieldName(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]