title: Filter bag by parent value in Apache PIG
body: <p>I have the following relation in Apache PIG.</p>
  
  <pre><code>TSERIES: {ORDERED: {(timestamp: long,contentHost: chararray)},ts1: long}
  </code></pre>
  
  <p>And I want to do the following:</p>
  
  <pre><code>F = foreach TSERIES {
      ts = filter ORDERED by timestamp &gt; TSERIES.ts1;
      generate ts;
  }
  </code></pre>
  
  <p>In short, I want to keep all elements of bag ORDERED with a timestmap higher than ts1,
  but pig won't allow, specifically this part <code>ts = filter ORDERED by timestamp &gt; TSERIES.ts1;</code>.</p>
  
  <p>Is this possible? I'm using version <code>0.9.2-cdh4.0.1</code> (cloudera).</p>