Timo Walther created FLINK-18628:
------------------------------------
Summary: Invalid error message for overloaded methods with same parameter name
Key: FLINK-18628
URL:
https://issues.apache.org/jira/browse/FLINK-18628 Project: Flink
Issue Type: Sub-task
Components: Table SQL / API
Reporter: Timo Walther
Assignee: Timo Walther
If a function has overloaded evaluation methods but same argument names, this leads to a confusing error message where types are missing:
{code}
Caused by: org.apache.flink.table.api.ValidationException: Invalid input arguments. Expected signatures are:
test-catalog.TEST_DB.myScalarFunc(a => )
at org.apache.flink.table.types.inference.TypeInferenceUtil.createInvalidInputException(TypeInferenceUtil.java:190)
at org.apache.flink.table.planner.functions.inference.TypeInferenceOperandChecker.checkOperandTypesOrError(TypeInferenceOperandChecker.java:131)
at org.apache.flink.table.planner.functions.inference.TypeInferenceOperandChecker.checkOperandTypes(TypeInferenceOperandChecker.java:89)
... 79 common frames omitted
Caused by: org.apache.flink.table.api.ValidationException: Invalid input arguments.
at org.apache.flink.table.types.inference.TypeInferenceUtil.inferInputTypes(TypeInferenceUtil.java:467)
at org.apache.flink.table.types.inference.TypeInferenceUtil.adaptArguments(TypeInferenceUtil.java:123)
at org.apache.flink.table.types.inference.TypeInferenceUtil.adaptArguments(TypeInferenceUtil.java:102)
at org.apache.flink.table.planner.functions.inference.TypeInferenceOperandChecker.checkOperandTypesOrError(TypeInferenceOperandChecker.java:126)
... 80 common frames omitted
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)