Details
-
Test
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
For example, in this macro, TestDriverPig.countStores will only count the number of stores in the "test" macro, not the number of times store is invoked.
test (in, out, column, filter_value ) returns b {
a = load '$in' as (name: chararray, age: int, gpa: float);
$b = filter a by $column < $filter_value ;
store $b into '$out';
}
x = test( '/user/hadoopqa/pignightly/tests/data/singlefile/studenttab10k', '/user/hadoopqa/pignightly/out/hadoopqa.1336171525/Y_Macro_Misc_7.out.1', 'age', 22 );
x = test( '/user/hadoopqa/pignightly/tests/data/singlefile/studenttab10k', '/user/hadoopqa/pignightly/out/hadoopqa.1336171525/Y_Macro_Misc_7.out.2', 'gpa', 3.0 );
There's no easy work around.