* @param expected
* @throws HiveException
*/
public static void assertResults(Operator<SelectDesc> selectOp, CollectOperator collectOp,
InspectableObject [] sourceData, InspectableObject [] expected) throws HiveException {
InspectableObject resultRef = new InspectableObject();
for (int i = 0; i < sourceData.length; i++) {
selectOp.processOp(sourceData[i].o, 0);
collectOp.retrieve(resultRef);
StructObjectInspector expectedOi = (StructObjectInspector) expected[i].oi;
List<? extends StructField> expectedFields = expectedOi.getAllStructFieldRefs();