*/
private void runDelimiterTest(Type leftType, Type rightType, String delimStr,
String nullStr, List<String> inputs, String query, List<Pair<String, Object>> checks)
throws IOException, InterruptedException {
MemStreamBuilder streamBuilder = new MemStreamBuilder("memstream");
streamBuilder.addField(new TypedField("a", leftType));
streamBuilder.addField(new TypedField("b", rightType));
for (String input : inputs) {
streamBuilder.addEvent(input);
}
FormatSpec formatSpec = new FormatSpec();
formatSpec.setFormat(FormatSpec.DEFAULT_FORMAT_NAME);
formatSpec.setParam(DelimitedEventParser.DELIMITER_PARAM, delimStr);
formatSpec.setParam(DelimitedEventParser.NULL_STR_PARAM, nullStr);
streamBuilder.setFormat(formatSpec);
StreamSymbol stream = streamBuilder.build();
getSymbolTable().addSymbol(stream);
getConf().set(SelectStmt.CLIENT_SELECT_TARGET_KEY, "testSelect");
// Connect to the environment and run it.