You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Aniket Mokashi (JIRA)" <ji...@apache.org> on 2013/09/03 20:57:52 UTC

[jira] [Updated] (PIG-3367) Add assert keyword (operator) in pig

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

Aniket Mokashi updated PIG-3367:
--------------------------------

    Labels: 0  (was: )
    
> Add assert keyword (operator) in pig
> ------------------------------------
>
>                 Key: PIG-3367
>                 URL: https://issues.apache.org/jira/browse/PIG-3367
>             Project: Pig
>          Issue Type: New Feature
>          Components: parser
>            Reporter: Aniket Mokashi
>            Assignee: Aniket Mokashi
>              Labels: 0
>
> Assert operator can be used for data validation. With assert you can write script as following-
> {code}
> a = load 'something' as (a0:int, a1:int);
> assert a by a0 > 0, 'a cant be negative for reasons';
> {code}
> This script will fail if assert is violated.

--
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