Flinksql报错lastValueWithRetractAggFunction.LongLastValueWithRetractAggFunction

242 阅读1分钟

报错:

org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: No matching accumulate method found for AggregateFunction 'org.apache.flink.table.planner.functions.aggfunctions.LastValueWithRetractAggFunction.LongLastValueWithRetractAggFunction'with parameters '(java.lang.Long, java.lang.Integer)'.

排查发现代码是:

last_value(coalesce(c1),-99) as c1

需要修改成:

last_value(coalesce(c1,-99)) as c1

就是“)”位置写错了!!

Flinksql

end