org.apache.phoenix.schema.ArgumentTypeMismatchException: ERROR 203 (22005): Type mismatch. expected: [INTEGER ARRAY] but was: INTEGER at UDF_ARRAY_ELEM argument 2
at org.apache.phoenix.parse.FunctionParseNode.validate(FunctionParseNode.java:195)
at org.apache.phoenix.compile.ExpressionCompiler.visitLeave(ExpressionCompiler.java:326)
at org.apache.phoenix.compile.ProjectionCompiler$SelectClauseVisitor.visitLeave(ProjectionCompiler.java:637)
at org.apache.phoenix.compile.ProjectionCompiler$SelectClauseVisitor.visitLeave(ProjectionCompiler.java:538)
at org.apache.phoenix.parse.FunctionParseNode.accept(FunctionParseNode.java:85)Hbase>
at org.apache.phoenix.compile.ProjectionCompiler.compile(ProjectionCompiler.java:396)
at org.apache.phoenix.compile.QueryCompiler.compileSingleFlatQuery(QueryCompiler.java:537)
at org.apache.phoenix.compile.QueryCompiler.compileSingleQuery(QueryCompiler.java:488)
at org.apache.phoenix.compile.QueryCompiler.compileSelect(QueryCompiler.java:200)
at org.apache.phoenix.compile.QueryCompiler.compile(QueryCompiler.java:157)
at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:361)
at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableSelectStatement.compilePlan(PhoenixStatement.java:335)
at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:243)
at org.apache.phoenix.jdbc.PhoenixStatement$1.call(PhoenixStatement.java:238)
at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
at org.apache.phoenix.jdbc.PhoenixStatement.executeQuery(PhoenixStatement.java:237)
at org.apache.phoenix.jdbc.PhoenixPreparedStatement.executeQuery(PhoenixPreparedStatement.java:187)
at CustomSQL.openTerminal(CustomSQL.java:45)
at CustomSQL.main(CustomSQL.java:19)