pig-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marek Miglinski <mmiglin...@seven.com>
Subject PigTest multiple output
Date Fri, 09 Sep 2011 10:54:59 GMT
Hey all,

Correct if I'm wrong, but there is no way to test Pig 0.8.1 script through JUnit PigTest if
I have multiple STORE? Ex Pig end file:
STORE result1 INTO '$outputPath/result1' USING PigStorage(',');
STORE result2 INTO '$outputPath/result2' USING PigStorage(',');
STORE result3 INTO '$outputPath/result3' USING PigStorage(',');
In this situation, I have to go through all PIG script 3 times? Like this (JAVA):
pigTest.assertOutput("record", input, "result1", output1);
pigTest.assertOutput("record", input, "result2", output2);
pigTest.assertOutput("record", input, "result3", output3);

So if I have like 9 STOREs, I have to go through Pig script 9 times? That's not efficient
at all... :(

View raw message