You are not going to use bind variables, are you? TranslatableTable is your friend.
For instance, 1) You implement a function that maps input String to a Tra For going "without binds", view macro is probably the closest option. You just use "deserialization" in place of "expandView". Implementation: https://github.com/apache/incubator-calcite/blob/3e50232b681e8dadb921580ee6f3e0376dd0f664/core/src/main/java/org/apache/calcite/schema/impl/ViewTable.java#L119 Test: https://github.com/apache/incubator-calcite/blob/5cb95e644f38da1a13d6def96eeec935b650289c/core/src/test/java/org/apache/calcite/test/JdbcTest.java#L645-L647 Vladimir
