Unfortunately, it is not possible to create a tuple or bag in Pig like this in the current version (0.15.0).
My suggestion is to create a simple text file with multiple values separated by commas and use the following command:
a = LOAD '/path' using PigStorage(',');
The text file should look something like this:
1,2,3
We hope that in future versions they will release some way to create a tuple or bag with a single command.
Good luck practicing the pig!
Bryan linton
source share