final Program program1 =
new Program() {
public RelNode run(RelOptPlanner planner, RelNode rel,
RelTraitSet requiredOutputTraits) {
final DataContext dataContext = context.getDataContext();
planner.setExecutor(new RexExecutorImpl(dataContext));
for (Materialization materialization : materializations) {
planner.addMaterialization(
new RelOptMaterialization(materialization.tableRel,
materialization.queryRel,