While not a direct answer to your question, perhaps you will find this blog
post on Calcite program representations useful:
https://www.feldera.com/blog/calcite-irs/
Mihai
From: Hugh Pearse
Sent: Saturday, July 6, 2024 11:45 AM
To: dev@calcite.apache.org
Subje
I feel like the solution might be to do something like
final RelOptTable.ViewExpander viewExpander =
(RelOptTable.ViewExpander)
Frameworks.getPlanner(configBuilder.build());
configBuilder.context(Contexts.of(viewExpander));
final RelBuilder builder = RelBuilder.create(configB