final OptiqCatalogReader catalogReader =
createCatalogReader().withSchemaPath(schemaPath);
final SqlValidator validator = new OptiqSqlValidator(operatorTable,
catalogReader, typeFactory);
final SqlNode validatedSqlNode = validator.validate(sqlNode);
final SqlToRelConverter sqlToRelConverter = new SqlToRelConverter(
null, validator, catalogReader, planner,
createRexBuilder(), convertletTable);
sqlToRelConverter.setTrimUnusedFields(false);