hi experts,
I'm using Apache Calcite to validate SQL. The problem is when I add a
UDF with variable number parameter, the validator can not find this function.
Version of Calcite is 1.21.0
Here this is my code.
TestfuncFunction.java
public class ConcatFunction { public String eval(String... arg0) {
return ""; } }AddUDF:SchemaPlus schemaPlus =
Frameworks.createRootSchema(true);schemaPlus.add("CONCAT",
ScalarFunctionImpl.create(ConcatFunction.class),"eval"));SQL: select
concat(name, " ") from test_tableException: