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

maghamravikiran commented on PHOENIX-1031:
------------------------------------------

[~jamestaylor]
   If a user specifies  a query as part of LOAD , we do a compilation of the 
query a second time to do few query validations. On the other hand, if the 
table name is specified , we compile the query only once.

https://github.com/apache/phoenix/blob/f84e5da33c21a728e73924c07506dd63e4621872/phoenix-pig/src/main/java/org/apache/phoenix/pig/util/QuerySchemaParserFunction.java#L65



> Compile query only once for Pig loader
> --------------------------------------
>
>                 Key: PHOENIX-1031
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1031
>             Project: Phoenix
>          Issue Type: Bug
>            Reporter: James Taylor
>            Assignee: maghamravikiran
>            Priority: Minor
>
> I noticed that the query is compiled a few times in the Pig loader. We 
> should, if possible, compile it once and hold on to the QueryPlan instead of 
> compiling it multiple times.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to