inputSch.add(bagSch);
inputSch.add(new FieldSchema(null, DataType.DOUBLE));
BagToString udf = new BagToString();
// expecting an exception because the delimiter is not of type Data.CHARARRAY
udf.outputSchema(inputSch);
}
@Test
public void testPigScriptForBagToTupleUDF() throws Exception {
PigServer pigServer = new PigServer(ExecType.LOCAL);