m_joinTree = leafNode;
} else {
// Build the tree by attaching the next table always to the right
// The node's join type is determined by the type of its right node
JoinType joinType = JoinType.get(tableNode.attributes.get("jointype"));
assert(joinType != JoinType.INVALID);
if (joinType == JoinType.FULL) {
throw new PlanningErrorException("VoltDB does not support full outer joins");
}