final OptiqConnectionConfig config =
planner.getContext().unwrap(OptiqConnectionConfig.class);
if (config == null) {
return null;
}
final MaterializationService service = MaterializationService.instance();
boolean create = lattice.auto && config.createMaterializations();
final OptiqSchema schema = starRelOptTable.unwrap(OptiqSchema.class);
return service.defineTile(lattice, groupSet, measureList, schema, create);
}