[ https://issues.apache.org/jira/browse/PIG-5357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16626501#comment-16626501 ]
Jacob Tolar commented on PIG-5357: ---------------------------------- Oh. The class of mContents also keeps track of this other piece of state. That's not very straightforward... :) Fixed that to just be \{{instanceof Set}}. > BagFactory interface should support creating a distinct bag from a set > ---------------------------------------------------------------------- > > Key: PIG-5357 > URL: https://issues.apache.org/jira/browse/PIG-5357 > Project: Pig > Issue Type: Improvement > Reporter: Jacob Tolar > Priority: Minor > Attachments: PIG-5357-1.patch > > > It would be nice if BagFactory supported creating a distinct bag from a set > of tuples, similar to: > {code:java} > newDefaultBag(List<Tuple> listOfTuples); > {code} > [https://github.com/apache/pig/blob/trunk/src/org/apache/pig/data/BagFactory.java] > -- This message was sent by Atlassian JIRA (v7.6.3#76005)