I need help with this pig script. I am just getting a single record. I am selecting 2 columns and doing a count(distinct) on another while also using a where like clause to find
If you don't want to count on any group, you use this:
G = FOREACH (GROUP A ALL){ unique = DISTINCT A.field; GENERATE COUNT(unique) AS ct; };
This will just give you a number.