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

Lorand Bendig commented on PIG-3670:
------------------------------------

I think [~aniket486] is right, it shouldn't be allowed to be able to assign an 
alias to a STORE, similarly to SPLIT.  However, I also think that an aliased 
ASSERT makes the interpretation of the pipeline clearer. Then the assigned 
alias, which initially didn't have any meaning, could be interpreted in case of 
a dump/store as 'foreach A generate * which fails if a0 > 5' .



> 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