lbug 0.16.1

An in-process property graph database management system built for query speed and scalability
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "optimizer/schema_populator.h"

namespace lbug::optimizer {

static void populateSchemaRecursive(planner::LogicalOperator* op) {
    for (auto i = 0u; i < op->getNumChildren(); ++i) {
        populateSchemaRecursive(op->getChild(i).get());
    }
    op->computeFactorizedSchema();
}

void SchemaPopulator::rewrite(planner::LogicalPlan* plan) {
    populateSchemaRecursive(plan->getLastOperator().get());
}
} // namespace lbug::optimizer