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

Rohini Palaniswamy commented on PIG-3364:
-----------------------------------------

+!
                
> Case expression fails with an even number of when branches
> ----------------------------------------------------------
>
>                 Key: PIG-3364
>                 URL: https://issues.apache.org/jira/browse/PIG-3364
>             Project: Pig
>          Issue Type: Bug
>          Components: parser
>            Reporter: Cheolsoo Park
>            Assignee: Cheolsoo Park
>             Fix For: 0.12
>
>         Attachments: PIG-3364.patch
>
>
> This is a bug introduced by PIG-3342 - Allow conditions in case statement.
> If 1) there are an even number of when branches, and 2) there is the else 
> branch, case statement with conditions fails with the following error:
> {code}
> Caused by: org.apache.pig.impl.logicalLayer.validators.TypeCheckerException: 
> ERROR 1057: 
> <line 2, column 14> LOGenerate expression plan can only have one output
> {code}
> This is because the logic of determining whether case statement has the else 
> branch is incorrect. This doesn't happen when conditions are not used in case 
> statement.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to