[
https://issues.apache.org/jira/browse/PIG-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13673690#comment-13673690
]
Rohini Palaniswamy commented on PIG-3342:
-----------------------------------------
Since it is slightly big, can you upload it in review board?
> Allow conditions in case statement
> ----------------------------------
>
> Key: PIG-3342
> URL: https://issues.apache.org/jira/browse/PIG-3342
> Project: Pig
> Issue Type: Improvement
> Components: parser
> Reporter: Cheolsoo Park
> Assignee: Cheolsoo Park
> Fix For: 0.12
>
> Attachments: PIG-3342.patch
>
>
> PIG-3268 added case statement support. But conditions are currently not
> allowed in when branches. For example,
> {code}
> CASE
> WHEN i % 5 == 0 THEN '5n'
> WHEN i % 5 == 1 THEN '5n+1'
> WHEN i % 5 == 2 THEN '5n+2'
> WHEN i % 5 == 3 THEN '5n+3'
> ELSE '5n+4'
> END
> {code}
> This is invalid now. However, it will be useful if it's allowed.
--
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