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

Koji Noguchi commented on PIG-5299:
-----------------------------------

Two ways of handling this.
(1) Deepcopy the expressions everywhere so that same expression is not used in 
multiple locations.
Or
(2) Delay the removal for expression that is used elsewhere. 

I'll try getting a patch with (2) and see how it looks.

> PartitionFilterOptimizer failing at compile time
> ------------------------------------------------
>
>                 Key: PIG-5299
>                 URL: https://issues.apache.org/jira/browse/PIG-5299
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Koji Noguchi
>            Assignee: Koji Noguchi
>
> Following (rather simple) code 
> {code:title=test.pig}
> A = LOAD '/tmp/testinput' using org.apache.pig.test.TestLoader ('srcid:int, 
> mrkt:chararray, dstid:int, name:chararray', 'srcid'); --srcid is the 
> partition-key
> B= filter A by dstid != 10 OR ((dstid < 3000 and srcid == 1000) OR (dstid >= 
> 3000 and srcid == 2000));
> dump B;
> {code}
> is failing with 
> {panel}
> 2017-09-07 16:37:03,210 \[main] ERROR org.apache.pig.tools.grunt.Grunt - 
> ERROR 2243: Attempt to remove operator GreaterThanEqual that is still 
> connected in the plan
> {panel}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to