IIRC, bind variables are accessible via DataContext.get("$0"), or some similar 
variable name. Take a look at the contents of the DataContextImpl.map field in 
a debugger. In generated java code, DataContext is available as a field called 
"root".

Julian


> On Jan 16, 2015, at 12:31 AM, Chin Wei Low <[email protected]> wrote:
> 
> Hi,
> 
> I am implementing a calcite adapter, and created a rule to pushdown filter.
> When I execute a prepared statement, I can see the condition contains a
> RexDynamicParam with value "?0" in the LogicalFilter.
> How can I get the value of the bind variable, so I can push it down to the
> underlying data source.
> 
> Regards,
> Chin Wei

Reply via email to