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

Russell Jurney commented on PIG-3670:
-------------------------------------

The syntax ended up being:

ASSERT my_relation BY field1 IS NOT NULL, 'Oh no, field1 is null';

> Fix assert in Pig script
> ------------------------
>
>                 Key: PIG-3670
>                 URL: https://issues.apache.org/jira/browse/PIG-3670
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>            Reporter: Daniel Dai
>            Assignee: Lorand Bendig
>             Fix For: 0.12.1, 0.13.0
>
>         Attachments: PIG-3670-1.patch, PIG-3670-2.patch, 
> PIG-3670-2_addition.patch
>
>
> PIG-3367 introduce "assert" keyword. However, it can only be used in Java 
> embedding, when use registerQuery. In Pig script or Grunt shell, GruntParser 
> will complain.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to