*
*/
private void getShowTablesPlan(ParseContext context,
WaspSqlShowTablesStatement sqlShowTablesStatement,
MetaEventOperation metaEventOperation) throws IOException {
ShowTablesPlan showTables = null;
SQLExpr like = sqlShowTablesStatement.getLike();
SQLExpr where = sqlShowTablesStatement.getWhere();
if (like == null && where == null) {
showTables = new ShowTablesPlan(ShowTablesPlan.ShowTablesType.ALL);
} else if (like != null) {
showTables = new ShowTablesPlan(ShowTablesPlan.ShowTablesType.LIKE);
String likePattern = parseString(like);
showTables.setLikePattern(likePattern);
} else if (where != null) {
throw new UnsupportedException("Show tables where not Unsupported!");
}
context.setPlan(showTables);
LOG.debug("ShowTablesPlan " + showTables.toString());
}