stmt = subqueryFlattener.flatten((DMLStatementNode)stmt);
} catch (StandardException ex) {
throw new SQLParserInternalException(ex);
}
plan.setPlan(new AST((DMLStatementNode)stmt, null));
astStatementLoader.apply(plan);
List<TableName> tableNames = new ArrayList<>();
Deque<PlanNode> nodeQueue = new LinkedList<>();
nodeQueue.add(plan.getPlan());
while(!nodeQueue.isEmpty()){