[
https://issues.apache.org/jira/browse/PIG-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14153286#comment-14153286
]
Koji Noguchi commented on PIG-4212:
-----------------------------------
One of our users has a logic in their script that requires LIMIT on 0.
This user wants to store at most N outputs total from contentA and contentB.
Giving preference on contentA.
{noformat}
limitContentA = limit contentA N;
groupedContent_A = GROUP limitContentA ALL;
limitContentB = limit contentA N - totalStoredContent_A.$0
... store both limitContentA and limitContentB
{noformat}
> Allow LIMIT of 0 for variableLimit (constant 0 is already allowed)
> ------------------------------------------------------------------
>
> Key: PIG-4212
> URL: https://issues.apache.org/jira/browse/PIG-4212
> Project: Pig
> Issue Type: Bug
> Reporter: Koji Noguchi
> Assignee: Koji Noguchi
> Priority: Trivial
>
> Somehow
> limit A 0
> is currently allowed but not
> limit A B.count - B.count
> I'd like the latter to be also allowed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)