What is the expected behavior of PigTest.assertOutput(String
aliasInput, String[] input, String alias, String[] expected), when the
alias being overridden is defined in another script that is executed
via the run command?

For example, I have these two scripts:

loader.pig:
  some_relation = LOAD 'foo' USING PigStorage() AS (col1, col2);

limiter.pig:
  run loader.pig
  other_relation = FILTER some_relation BY col1='foo';

I have a unit test where I'm using the assertOutput() method and
specifying the input for 'some_relation':
String[] input = {
    "bar\t10",
}
String [] ouptut = {};
test.assertOutput("some_relation", input, "other_relation", output);


However, this is not having the affect I would desire as I can tell by
the failure message that 'foo' is still being loaded.  I have some
code that reproduces this but I need to clean it up first before
posting.  I am incorrect in my expectation for this method?  I don't
seem to see any documentation either way.

-Mark

Reply via email to