When we evaluate that query, JaninoRexCompiler throws an Exception saying there's no SqlFunctions.eq(Object, int).

I took a breakpoint on BinaryImplementor.implement() to see variables just before compiler finds SqlFunctions.eq().
The type of expression is Object which is not generic, but seems like matching RexCall operand have value type information.
(I mean type mismatch occurs.)

Attachments

Issue Links

contains

CALCITE-1387CAST(ITEM() as INTEGER) throws RuntimeException in Runtime when return value of ITEM() is null