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

Richard Ding commented on PIG-1616:
-----------------------------------

+1

> 'union onschema' does not use create output with correct schema when udfs are 
> involved
> --------------------------------------------------------------------------------------
>
>                 Key: PIG-1616
>                 URL: https://issues.apache.org/jira/browse/PIG-1616
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.8.0
>            Reporter: Thejas M Nair
>            Assignee: Thejas M Nair
>             Fix For: 0.8.0
>
>         Attachments: PIG-1616.1.patch
>
>
> 'union onshcema' creates a merged schema based on the input schemas. It does 
> that in the queryparser, and at that stage the udf return type used is the 
> default return type.  The actual return type for the udf is determined later 
> in the TypeCheckingVisitor using EvalFunc.getArgsToFuncMapping().
> 'union onschema' should use the final type for its input relation to create 
> the merged schema.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to