I have a file test.txt with the following bags:
{(es,1),(de,1),(ps,1),(ro,1),(so,1)}
{(es,1),(de,1),(it,2),(no,1),(ps,1),(ro,1),(so,1)}
{(es,1),(de,1),(so,1)}
I want to load them in Pig
A = LOAD 'test.txt' as (language_bag: bag{t: (a:chararray,f:int)});
And I obtain the following error.
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: mismatched input ';' expecting RIGHT_PAREN
Details at logfile: /homes/ruthgavi/Projects/Conferences/PigScripts/pig_1426528460732.log
Can somebody help me figure out what I am doing wrong :(