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

Julian Hyde commented on PHOENIX-1878:
--------------------------------------

PhoenixSchema.getTableNames is being called because the schema's cache is 
enabled. The first time you ask for a table, it will build a cache with all 
tables, and for that it needs all of the keys.

In theory, if you disable the cache by calling 
{{SchemaPlus.setCacheEnabled(false)}} or by specifying {{cache: false}} in your 
model (in e.g. CalciteTest.connectUsingModel), then getTableNames will not be 
called. However, due to CALCITE-690 it seems to be always called.

> Implement PhoenixSchema and PhoenixTable in Phoenix/Calcite Integration
> -----------------------------------------------------------------------
>
>                 Key: PHOENIX-1878
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1878
>             Project: Phoenix
>          Issue Type: Task
>            Reporter: Maryann Xue
>   Original Estimate: 240h
>  Remaining Estimate: 240h
>




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

Reply via email to