}
private Query parseView(String view, QualifiedTableName name, Table node)
{
try {
Statement statement = sqlParser.createStatement(view);
return checkType(statement, Query.class, "parsed view");
}
catch (ParsingException e) {
throw new SemanticException(VIEW_PARSE_ERROR, node, "Failed parsing stored view '%s': %s", name, e.getMessage());
}