if (!(d instanceof Tuple)) {
throw new RuntimeException
("Internal Error: Evaluation of group expression did not return a tuple");
}
Tuple output = (Tuple) d;
if (output.arity() < 2) {
throw new RuntimeException
("Internal Error: Evaluation of group expression returned a tuple with <2 fields");
}
Datum[]groupAndTuple = new Datum[2];