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

Daniel Dai commented on PIG-3670:
---------------------------------

I think we should allow the following script:
{code}
A = load 'data.txt' AS (a0:int,a1:int,a2:int);
B = ASSERT A by a0 >= 5, 'a0 should be >= 5'; 
C = foreach B generate xxxx;
{code}
How do you think?

> 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.1.5#6160)

Reply via email to