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

Maryann Xue commented on PHOENIX-3394:
--------------------------------------

[~jamestaylor], looks like we need to make getSequence() into MetaDataClient 
too. 
Another thing is that we now have some necessary table resolving attempts. We 
add a "phoenix" schema under the calcite root schema and set it as the default 
schema. But still if a sql query refers to a table as "ATABLE" for 
example,calcite will try resolving "phoenix" as a sub-schema (being 
"phoenix.phoenix") under our default schema, which is the real "phoenix" 
schema. And of course that sub-schema does not exist at all, but since Phoenix 
lacks a way of querying a schema (when useNamespace = false), it will always 
return a sub-schema object regardless. Thus afterwards there will be attempts 
to resolve "phoenix.phoenix.ATABLE", which is gonna fail and then fall back to 
"phoenix.ATABLE". [~julianhyde], this is what I saw from the debugger and have 
no idea why.

> Fix getHTable unsupported operation
> -----------------------------------
>
>                 Key: PHOENIX-3394
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-3394
>             Project: Phoenix
>          Issue Type: Sub-task
>            Reporter: Eric Lomore
>            Assignee: Eric Lomore
>
> Tons of unit tests have this same stack trace. It appears that this call 
> shouldn't reach ConnectionlessQueryServicesImpl.getTable?
> {code}
> Caused by: java.lang.UnsupportedOperationException
>       at 
> org.apache.phoenix.query.ConnectionlessQueryServicesImpl.getTable(ConnectionlessQueryServicesImpl.java:157)
>       at 
> org.apache.phoenix.query.DelegateConnectionQueryServices.getTable(DelegateConnectionQueryServices.java:70)
>       at 
> org.apache.phoenix.execute.MutationState.getHTable(MutationState.java:360)
>       at 
> org.apache.phoenix.iterate.TableResultIterator.<init>(TableResultIterator.java:101)
>       at 
> org.apache.phoenix.iterate.DefaultTableResultIteratorFactory.newIterator(DefaultTableResultIteratorFactory.java:33)
>       at 
> org.apache.phoenix.iterate.ParallelIterators.submitWork(ParallelIterators.java:104)
>       at 
> org.apache.phoenix.iterate.BaseResultIterators.getIterators(BaseResultIterators.java:871)
>       ... 71 more
> {code}



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

Reply via email to