Permalink
Browse files

Add multi-query example.

  • Loading branch information...
1 parent 594cb96 commit 53f38c74dfaef976e5899bbdd54ef367075b6e7d @tomwhite committed Jul 19, 2010
Showing with 9 additions and 0 deletions.
  1. +4 −0 input/pig/multiquery/A
  2. +5 −0 src/main/ch11/grunt/multiquery.grunt
@@ -0,0 +1,4 @@
+Joe cherry
+Ali apple
+Joe banana
+Eve apple
@@ -0,0 +1,5 @@
+A = LOAD 'input/pig/multiquery/A';
+B = FILTER A BY $1 == 'banana';
+C = FILTER A BY $1 != 'banana';
+STORE B INTO 'output/b';
+STORE C INTO 'output/c';

0 comments on commit 53f38c7

Please sign in to comment.