return SqlParser.create(SqlParserImpl.FACTORY, sql, quoting,
unquotedCasing, quotedCasing);
}
public SqlValidator getValidator(SqlTestFactory factory) {
final SqlOperatorTable operatorTable = factory.createOperatorTable();
final boolean caseSensitive = (Boolean) factory.get("caseSensitive");
final RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl();
return SqlValidatorUtil.newValidator(operatorTable,
new MockCatalogReader(typeFactory, caseSensitive).init(),
typeFactory);