Such kind of query ends with `herddb.model.StatementExecutionException: At line 1, column 58: Illegal use of dynamic parameter` It looks like Calcite is not able to process the function call with a bind variabile