This is an automated email from the ASF dual-hosted git repository.

twalthr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 4e280c8  [hotfix][table-common] Fix argument count validation
4e280c8 is described below

commit 4e280c8467faf7c255557dce9e0e87eebf5c15e0
Author: Dawid Wysakowicz <dwysakow...@apache.org>
AuthorDate: Thu Jun 27 09:58:47 2019 +0200

    [hotfix][table-common] Fix argument count validation
---
 .../java/org/apache/flink/table/types/inference/TypeInferenceUtil.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeInferenceUtil.java
 
b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeInferenceUtil.java
index 045ec0e..04ab899 100644
--- 
a/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeInferenceUtil.java
+++ 
b/flink-table/flink-table-common/src/main/java/org/apache/flink/table/types/inference/TypeInferenceUtil.java
@@ -180,7 +180,7 @@ public final class TypeInferenceUtil {
                        }
                });
 
-               if (argumentCount.isValidCount(actualCount)) {
+               if (!argumentCount.isValidCount(actualCount)) {
                        throw new ValidationException(
                                String.format(
                                        "Invalid number of arguments. %d 
arguments passed.",

Reply via email to