[ 
https://issues.apache.org/jira/browse/PIG-3342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Cheolsoo Park updated PIG-3342:
-------------------------------

    Resolution: Fixed
        Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks Aniket and Rohini for a review!
                
> 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

Reply via email to