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


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

        

Reply via email to