/** Implements {@link org.eigenbase.relopt.RelOptTable.ViewExpander}
* interface for {@link net.hydromatic.optiq.tools.Planner}. */
public class ViewExpanderImpl implements ViewExpander {
public RelNode expandView(RelDataType rowType, String queryString,
List<String> schemaPath) {
SqlParser parser = SqlParser.create(parserFactory, queryString,
lex.quoting, lex.unquotedCasing, lex.quotedCasing);
SqlNode sqlNode;
try {
sqlNode = parser.parseQuery();
} catch (SqlParseException e) {
throw new RuntimeException("parse failed", e);
}
final OptiqCatalogReader catalogReader =