Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.9.0
Description
When UDAF parameters are inconsistent with the definition of accumulate method, all arguments to the accumulate method are listed in the error. But the first argument of accumulate is accumulator, users don't have to care when using SQL.
For example:
INSERT INTO Orders SELECT name, USERUDAF(id, name) FROM Orders GROUP BY TUMBLE(rowTime, interval '10' second ), id, name
USERUDAF is a User-Defined Aggregate Functions, and accumulate is defined as follow:
public void accumulate(Long acc, String a) {……}
At present, error is as follows:
Caused by: org.apache.flink.table.api.ValidationException: Given parameters of function do not match any signature. Actual: (java.lang.Integer, java.lang.String) Expected: (java.lang.Integer, java.lang.String)
This error will mislead users, and the expected errors are as follows :
Caused by: org.apache.flink.table.api.ValidationException: Given parameters of function do not match any signature. Actual: (java.lang.Integer, java.lang.String) Expected: (java.lang.String)
Attachments
Issue Links
- links to