Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
0.2.0
-
None
-
None
-
None
Description
There is a need to sometimes generate empty tuples and bags as a part of the Pig syntax rather than using UDF's
a = load 'mydata.txt' using PigStorage();
b =foreach a generate ( ) as emptytuple;
c = foreach a generate { } as emptybag;
dump c;
Attachments
Issue Links
- blocks
-
PIG-773 Empty complex constants (empty bag, empty tuple and empty map) should be supported
- Closed