title: Load only particular field in PIG?
body: <p>This is my file:</p>
  
  <p><code>Col1, Col2, Col3, Col4, Col5</code></p>
  
  <p>I need only <code>Col2</code> and <code>Col3</code>.</p>
  
  <p>Currently I'm doing this:</p>
  
  <pre><code>a = load 'input' as (Col1:chararray, 
                       Col2:chararray, 
                       Col3:chararray, 
                       Col4:chararray);
  b = foreach a generate Col2, Col3;
  </code></pre>
  
  <p>Is there a way to do directly load only <code>Col2</code> and <code>Col3</code> instead of loading the whole <code>input</code> and then <code>generate</code> required columns?</p>