autophagy commented on code in PR #28326:
URL: https://github.com/apache/flink/pull/28326#discussion_r3381567452


##########
flink-table/flink-table-test-utils/src/main/java/org/apache/flink/table/runtime/functions/ProcessTableFunctionTestHarness.java:
##########
@@ -823,49 +1351,78 @@ private Method findEvalMethod() throws 
NoSuchMethodException {
                         "Multiple eval() methods found in "
                                 + functionClass.getSimpleName()
                                 + ". ProcessTableFunction must have exactly 
one eval() method.");
-            } else {
-                return evalMethod;
             }
-        }
 
-        /**
-         * Validates that the eval() method doesn't use unsupported features. 
Temporary, until
-         * context is supported.
-         */
-        private void validateEvalMethodSupported(Method evalMethod, 
List<ArgumentInfo> arguments) {
-            Parameter[] parameters = evalMethod.getParameters();
+            return evalMethod;
+        }
 
-            for (int i = 0; i < parameters.length; i++) {
-                Parameter param = parameters[i];
-                Class<?> paramType = param.getType();
+        @Nullable
+        private static Method findOnTimerMethod(
+                Class<?> functionClass, List<ArgumentInfo> arguments) {
+            List<Method> candidates = 
ExtractionUtils.collectMethods(functionClass, "onTimer");
+            if (candidates.isEmpty()) {

Review Comment:
   I had this initially, but digging into the way that live selects the ontimer 
function it does the same - it just uses the first one with a valid signature. 
I'll make sure this is the case though, it was a little while ago since I dug 
into this.



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