druidParser.parseSqlToStatement(context);
druidParser.generatePlan(context);
Plan plan = context.getPlan();
if (plan instanceof CreateTablePlan) {
CreateTablePlan createTable = (CreateTablePlan) plan;
FTable ftable = createTable.getTable();
fmetaServices.createTable(ftable);
TableSchemaCacheReader reader = TableSchemaCacheReader
.getInstance(fmetaServices.getConf());
reader.addSchema(ftable.getTableName(), ftable);
}
} catch (IOException ioe) {
ioe.printStackTrace();
}
}