// Verify union table
HashMap<Integer, ArrayList<ArrayList<Object>>> resultTable =
new HashMap<Integer, ArrayList<ArrayList<Object>>>();
ArrayList<ArrayList<Object>> rows = new ArrayList<ArrayList<Object>>();
addResultRow(rows, 0, -3.25f, 5, 1001L, 51e+2, "Zebra", new DataByteArray("Zebra"), m1);
addResultRow(rows, 0, 0.0f, 1000, 1002L, 52e+2, "hadoop", new DataByteArray("hadoop"),m1);
addResultRow(rows, 0, 3.25f, -1, 1000L, 50e+2, "zebra", new DataByteArray("zebra"), m1);
addResultRow(rows, 0, 28.0f, 1002, 1000L, 50e+2, "Hadoop", new DataByteArray("Hadoop"),m1);
addResultRow(rows, 0, 50.0f, 1001, 1000L, 50e+2, "Pig", new DataByteArray("Pig"), m1);
addResultRow(rows, 0, 52.0f, 1001, 1001L, 50e+2, "pig", new DataByteArray("pig"), m1);
addResultRow(rows, 0, 100.0f, 1001, 1003L, 50e+2, "Apple", new DataByteArray("Apple"), m1);
addResultRow(rows, 0, 101.0f, 1001, 1001L, 50e+2, "apple", new DataByteArray("apple"), m1);
addResultRow(rows, 0, 101.0f, 1001, 1001L, 50e+2, "apple", new DataByteArray("apple"), m1);
resultTable.put(0, rows);
rows = new ArrayList<ArrayList<Object>>();
addResultRow(rows, 1, -99.0f, -1, 1002L, 51e+2, "orange", new DataByteArray("orange"),m2);
addResultRow(rows, 1, 33.0f, 2000, 1006L, 52e+2, "beige", new DataByteArray("beige"), m2);
addResultRow(rows, 1, 50.0f, 1001, 1008L, 52e+2, "gray", new DataByteArray("gray"), m2);
addResultRow(rows, 1, 53.0f, 1001, 1001L, 52e+2, "brown", new DataByteArray("brown"), m2);
addResultRow(rows, 1, 56.0f, 15, 1004L, 50e+2, "green", new DataByteArray("green"), m2);
addResultRow(rows, 1, 100.0f, 1001, 1003L, 55e+2, "white", new DataByteArray("white"), m2);
addResultRow(rows, 1, 102.0f, 1001, 1001L, 52e+2, "purple", new DataByteArray("purple"),m2);
resultTable.put(1, rows);
// Verify union table
Iterator<Tuple> it = pigServer.openIterator("records1");
int numbRows = verifyTable(resultTable, 1, 0, it);