SEPURI-SAI-KRISHNA commented on code in PR #29345:
URL: https://github.com/apache/flink/pull/29345#discussion_r4284157938


##########
flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:
##########
@@ -1124,6 +1181,20 @@ private Builder(Class<? extends 
ProcessTableFunction<OUT>> functionClass) {
             this.functionClass = checkNotNull(functionClass, "functionClass 
must not be null");
         }
 
+        private Builder(Builder<OUT> other) {
+            this.functionClass = other.functionClass;
+            this.scalarArgs.putAll(other.scalarArgs);
+            this.tableArgs.putAll(other.tableArgs);
+            this.partitionConfigs.putAll(other.partitionConfigs);
+            other.stateArgs.forEach((name, config) -> this.stateArgs.put(name, 
config.copy()));
+            this.onTimeColumnName = other.onTimeColumnName;
+        }
+
+        /** Creates a copy of this builder, detached from any further 
configuration of it. */
+        private Builder<OUT> copy() {
+            return new Builder<>(this);
+        }
+

Review Comment:
   Gone, with `Builder.copy()` and `StateArgumentConfiguration.copy()`.



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