title: Extract first line of CSV file in Pig
body: <p>I have several CSV files and the header is always the first line in the file. What's the best way to get that line out of the CSV file as a string in Pig? Preprocessing with sed, awk etc is not an option.</p>
  
  <p>I've tried loading the file with regular PigStorage and the Piggy bank CsvLoader, but its not clear to me how I can get that first line, if at all.</p>
  
  <p>I'm open to writing an UDF, if that's what it takes.</p>