[
https://issues.apache.org/jira/browse/PIG-3793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922950#comment-13922950
]
Prashant Kommireddi commented on PIG-3793:
------------------------------------------
It's cool, that's how the project evolves. Ideas are always welcome :)
Sounds like you have a use-case where {{PigServer.registerQuery(String)}} could
be followed by a call to {{LogicalPlanData. getNumLogicalRelationOperators()}}
- both interleaved and multiple times. Basically registering queries and seeing
how LP changes through the various registers. Would it suffice to have a
{{resetLogicalPlanData()}} method on PigServer that recomputes the
{{LogicalPlanData}} ?
> Provide info on number of LogicalRelationalOperator(s) used in the script
> through LogicalPlanData
> -------------------------------------------------------------------------------------------------
>
> Key: PIG-3793
> URL: https://issues.apache.org/jira/browse/PIG-3793
> Project: Pig
> Issue Type: Improvement
> Components: data
> Affects Versions: 0.13.0
> Reporter: Prashant Kommireddi
> Assignee: Prashant Kommireddi
> Fix For: 0.13.0
>
> Attachments: PIG-3793.patch, PIG-3793_2.patch
>
>
> Its useful to have an understanding of how many operators are being used in
> the script via the API. This could allow admins to enforce
> checks/restrictions on the length/complexity of the plan in user scripts.
--
This message was sent by Atlassian JIRA
(v6.2#6252)