FunctionImplementation eqImpl = functions.get(new FunctionIdent(EqOperator.NAME,
ImmutableList.<DataType>of(DataTypes.STRING, DataTypes.STRING)));
Function whereClause = new Function(eqImpl.info(),
Arrays.asList(tableNameRef, Literal.newLiteral("shards")));
collectNode.whereClause(new WhereClause(whereClause));
collectNode.toCollect(toCollect);
collectNode.maxRowGranularity(RowGranularity.DOC);
Object[][] result = operation.collect(collectNode).get();
System.out.println(TestingHelpers.printedTable(result));
assertEquals("sys| shards| 1| 0| NULL| NULL| NULL\n", TestingHelpers.printedTable(result));