Can Some one explain me on getting this below output in Pigscript
my input file is below
a.txt
aaa.kyl,data,data
bbb.kkk,data,data
cccccc.hj,data,data
qa.dff,data,data
I am writing the pig script like this
A = LOAD 'a.txt' USING PigStorage(',') AS(a1:chararray,a2:chararray,a3:chararray);
B = FOREACH A GENERATE FLATTEN(STRSPLIT(a1)),a2,a3;
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
(kyl,data,data)
(kkk,data,data)
(hj,data,data)
(dff,data,data)
Can some one give me the code for this