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

Rohini Palaniswamy commented on PIG-5201:
-----------------------------------------

bq. I don't see any reasons FLATTEN(null-bag) to behave differently.
   It is hard for me to see empty and null as same. This means dropping a whole 
record when one of the fields is null. I doubt users would want that. You might 
want to check with a couple of them to be sure. 

bq. Also, not sure how many users depend on the current FLATTEN(null) = null 
given it corrupts the output in most cases.
  Most of the users have bags with just one element and this shifting issue is 
not a problem in those cases. Bag of strings is way more common than a bag of 
tuples and that is why we have not come across this for a long time.



> Null handling on FLATTEN
> ------------------------
>
>                 Key: PIG-5201
>                 URL: https://issues.apache.org/jira/browse/PIG-5201
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Koji Noguchi
>            Assignee: Koji Noguchi
>            Priority: Minor
>         Attachments: pig-5201-v00-testonly.patch, pig-5201-v01.patch, 
> pig-5201-v02.patch
>
>
> Sometimes, FLATTEN(null) or FLATTEN(bag-with-null) seem to produce incorrect 
> results.
> Test code/script to follow.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to