[ 
https://issues.apache.org/jira/browse/PIG-3777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dai updated PIG-3777:
----------------------------

    Attachment: PIG-3777-1.patch

Patch committed to 0.12 branch and trunk.

Thanks Karina for reporting!

> Pig 12.0 Documentation
> ----------------------
>
>                 Key: PIG-3777
>                 URL: https://issues.apache.org/jira/browse/PIG-3777
>             Project: Pig
>          Issue Type: Wish
>          Components: documentation
>    Affects Versions: 0.12.0
>            Reporter: Karina Hauser
>            Priority: Trivial
>         Attachments: PIG-3777-1.patch
>
>   Original Estimate: 0.25h
>  Remaining Estimate: 0.25h
>
> I think the example for SAMPLE is wrong
> In this example, a scalar expression is used (it will sample approximately 
> 1000 records from the input).
> a = load 'a.txt';
> b = group a all;
> c = foreach b generate COUNT(a) as num_rows;
> e = sample d 1000/num_rows;
> There is no relation d and I get a "Projected field [num_rows] does not exist 
> in schema" error, I think it need to be 
> e = sample a 1000/c.numrows



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to