title: StrSplit in Pig functions
body: <p>Can Some one explain me on getting this below output in Pigscript</p>
  
  <p>my input file is below </p>
  
  <p>a.txt</p>
  
  <pre><code>aaa.kyl,data,data
  bbb.kkk,data,data
  cccccc.hj,data,data
  qa.dff,data,data
  </code></pre>
  
  <p>I am writing the pig script like this</p>
  
  <pre><code>A = LOAD 'a.txt' USING PigStorage(',') AS(a1:chararray,a2:chararray,a3:chararray);
  B = FOREACH A GENERATE FLATTEN(STRSPLIT(a1)),a2,a3;
  </code></pre>
  
  <p>I dont know how to proceed with this..
  i need out put like this below.Basically  i need all chars after the dot symbol in the first atom</p>
  
  <pre><code>(kyl,data,data)
  (kkk,data,data)
  (hj,data,data)
  (dff,data,data)
  </code></pre>
  
  <p>Can some one give me the code for this</p>