[jira] Commented: (PIG-1606) flatten documentation does not discuss flatten of empty bag
[ https://issues.apache.org/jira/browse/PIG-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12909810#action_12909810 ] Olga Natkovich commented on PIG-1606: - If we are not planning to change the semantics I will ask Corinne to document for 0.8 > flatten documentation does not discuss flatten of empty bag > --- > > Key: PIG-1606 > URL: https://issues.apache.org/jira/browse/PIG-1606 > Project: Pig > Issue Type: Bug > Components: documentation >Reporter: Thejas M Nair > Fix For: 0.9.0 > > > From the existing flatten documentation, it is not clear that flatten of an > empty bag results in that row being discarded . > For example the following query gives no output - > {code} > grunt> cat /tmp/empty.bag > {} 1 > grunt> l = load '/tmp/empty.bag' as (b : bag{}, i : int); > grunt> f = foreach l generate flatten(b), i; > grunt> dump f; > grunt> > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-1606) flatten documentation does not discuss flatten of empty bag
[ https://issues.apache.org/jira/browse/PIG-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908259#action_12908259 ] Alan Gates commented on PIG-1606: - flatten of an empty bag has to be a black hole else cogroup + foreach != inner join, which we claim it does. > flatten documentation does not discuss flatten of empty bag > --- > > Key: PIG-1606 > URL: https://issues.apache.org/jira/browse/PIG-1606 > Project: Pig > Issue Type: Bug > Components: documentation >Reporter: Thejas M Nair > Fix For: 0.9.0 > > > From the existing flatten documentation, it is not clear that flatten of an > empty bag results in that row being discarded . > For example the following query gives no output - > {code} > grunt> cat /tmp/empty.bag > {} 1 > grunt> l = load '/tmp/empty.bag' as (b : bag{}, i : int); > grunt> f = foreach l generate flatten(b), i; > grunt> dump f; > grunt> > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-1606) flatten documentation does not discuss flatten of empty bag
[ https://issues.apache.org/jira/browse/PIG-1606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908250#action_12908250 ] Olga Natkovich commented on PIG-1606: - Is this even the semantics we want. I would expect a single row with an empty field. > flatten documentation does not discuss flatten of empty bag > --- > > Key: PIG-1606 > URL: https://issues.apache.org/jira/browse/PIG-1606 > Project: Pig > Issue Type: Bug > Components: documentation >Reporter: Thejas M Nair > Fix For: 0.9.0 > > > From the existing flatten documentation, it is not clear that flatten of an > empty bag results in that row being discarded . > For example the following query gives no output - > {code} > grunt> cat /tmp/empty.bag > {} 1 > grunt> l = load '/tmp/empty.bag' as (b : bag{}, i : int); > grunt> f = foreach l generate flatten(b), i; > grunt> dump f; > grunt> > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.