[
https://issues.apache.org/jira/browse/PIG-2136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thejas M Nair updated PIG-2136:
-------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
+1 . Patch committed to trunk. Thanks Gianmarco !
> Implementation of Sample should use LessThanExpression instead of
> LessThanEqualExpression
> -----------------------------------------------------------------------------------------
>
> Key: PIG-2136
> URL: https://issues.apache.org/jira/browse/PIG-2136
> Project: Pig
> Issue Type: Bug
> Reporter: Gianmarco De Francisci Morales
> Assignee: Gianmarco De Francisci Morales
> Priority: Minor
> Attachments: PIG-2136.patch
>
>
> Currently LogicalPlanBuilder uses a filter with 'Math.random() <= const' to
> implement Sample.
> Actually it should use 'Math.random() < const' to be correct, because
> Math.random() generates a number 0 <= x < 1
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira