if (tableScan instanceof StmtTargetTableScan) {
Table table = ((StmtTargetTableScan)tableScan).getTargetTable();
m_tableList.add(table);
leafNode = new TableLeafNode(nodeId, joinExpr, whereExpr, (StmtTargetTableScan)tableScan);
} else {
leafNode = new SubqueryLeafNode(nodeId, joinExpr, whereExpr, (StmtSubqueryScan)tableScan);
}
if (m_joinTree == null) {
// this is the first table
m_joinTree = leafNode;