catalog_view = c.createMaterializedView();
assert (catalog_view != null);
assert (catalog_view.getGroupbycols().isEmpty() == false) : String.format("Missing columns for VerticalPartition view %s\n%s", catalog_view.fullName(), c);
List<String> columnNames = c.getVerticalPartitionColumnNames();
VerticalPartitionPlanner vp_planner = new VerticalPartitionPlanner(catalog_db, catalog_view);
Map<Statement, Statement> optimized = null;
try {
optimized = vp_planner.generateOptimizedStatements();
} catch (Exception ex) {
throw new RuntimeException("Failed to generate optimized query plans:\n" + c, ex);
}
if (optimized != null) {
c.addOptimizedQueries(optimized);