[ 
https://issues.apache.org/jira/browse/PIG-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285866#comment-13285866
 ] 

Daniel Dai commented on PIG-2166:
---------------------------------

Hi, Hien,
Patch looks good. For BagToString, it is better to have a default delimit, so 
it does not complain if we don't pass a delimit. 

It also makes sense to add some e2e tests to test/e2e/pig/tests/nightly.conf. 
You can use the input file studentcomplextab10k which contains bag. Refer to 
https://cwiki.apache.org/confluence/display/PIG/HowToTest for how to run e2e 
tests.
                
> UDFs to join a bag
> ------------------
>
>                 Key: PIG-2166
>                 URL: https://issues.apache.org/jira/browse/PIG-2166
>             Project: Pig
>          Issue Type: Improvement
>            Reporter: Daniel Dai
>            Assignee: Hien Luu
>            Priority: Minor
>              Labels: newbie, simple
>         Attachments: bagtotuplestring.diff
>
>
> Get several request for a UDF to flatten a bag. Seems reasonable to create 
> one in builtin:
> 1. BagToTuple: {(a),(b),(c)} -> (a,b,c)
> 2. BagToString(delimit="_"): {(a),(b),(c) -> "a_b_c"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to