cshuo commented on code in PR #18083:
URL: https://github.com/apache/hudi/pull/18083#discussion_r2986893643
##########
hudi-flink-datasource/hudi-flink2.0.x/src/main/java/org/apache/hudi/utils/RuntimeContextUtils.java:
##########
@@ -55,4 +56,10 @@ public static long getWatermarkInternal(RuntimeContext
runtimeContext) {
return
Long.parseLong(jobParameters.getOrDefault(AUTO_WATERMARK_INTERVAL.key(),
AUTO_WATERMARK_INTERVAL.defaultValue().toMillis() + ""));
}
+
+ public static boolean isObjectReuseEnabled(RuntimeContext runtimeContext) {
Review Comment:
use `runtimeContext.isObjectReuseEnabled()` directly.
##########
hudi-flink-datasource/hudi-flink2.1.x/src/main/java/org/apache/hudi/utils/RuntimeContextUtils.java:
##########
@@ -55,4 +56,10 @@ public static long getWatermarkInternal(RuntimeContext
runtimeContext) {
return
Long.parseLong(jobParameters.getOrDefault(AUTO_WATERMARK_INTERVAL.key(),
AUTO_WATERMARK_INTERVAL.defaultValue().toMillis() + ""));
}
+
+ public static boolean isObjectReuseEnabled(RuntimeContext runtimeContext) {
+ Map<String, String> jobParameters =
runtimeContext.getGlobalJobParameters();
Review Comment:
use `runtimeContext.isObjectReuseEnabled()` directly.
--
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]