autophagy commented on code in PR #28212:
URL: https://github.com/apache/flink/pull/28212#discussion_r3281084393
##########
flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:
##########
@@ -568,6 +617,20 @@ public Builder<OUT> withScalarArgument(String
argumentName, Object value) {
return this;
}
+ /** Sets initial state for a state parameter. */
+ public Builder<OUT> withInitialStateArgument(
+ String stateName, Row partitionKey, Object state) {
+ checkNotNull(stateName, "stateName must not be null");
+ checkNotNull(partitionKey, "partitionKey must not be null");
+ checkNotNull(state, "state must not be null");
+
+ stateArgs
+ .computeIfAbsent(stateName, k -> new
StateArgumentConfiguration())
+ .initialValues
Review Comment:
I like the idea, yeah! It'd be good to flag these early during build
--
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]