* @param catalog_db
* @return
*/
public static PartitionTree generate(CatalogContext catalogContext, PartitionPlan pplan) {
PartitionTree ptree = new PartitionTree(catalogContext.database);
DesignerInfo info = new DesignerInfo(catalogContext, null, null);
try {
new PartitionPlanTreeGenerator(info, pplan).generate(ptree);
} catch (Exception ex) {
ex.printStackTrace();
return (null);