private void runWhereTest(String streamName, String query,
List<Pair<String, Object>> checkFields)
throws IOException, InterruptedException {
MemStreamBuilder streamBuilder = new MemStreamBuilder(streamName);
streamBuilder.addField(new TypedField("a", Type.getPrimitive(Type.TypeName.INT)));
streamBuilder.addField(new TypedField("b", Type.getNullable(Type.TypeName.INT)));
streamBuilder.addEvent("1,2");
streamBuilder.addEvent("3,4");
StreamSymbol stream = streamBuilder.build();
getSymbolTable().addSymbol(stream);