[
https://issues.apache.org/jira/browse/PHOENIX-1879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14505785#comment-14505785
]
Julian Hyde commented on PHOENIX-1879:
--------------------------------------
In your driver, override org.apache.calcite.jdbc.Driver.createPrepareFactory()
to return [a function that returns] your own sub-class of CalcitePrepareImpl
called say PhoenixPrepareImpl. In PhoenixPrepareImpl, you can override methods
such as createPlanner.
The RelOptCluster is created before createPlanner is called, but you can call
its setMetadataProvider method in your override of createPlanner.
> Provide prepare statement hooks for Phoenix/Calcite Integration
> ---------------------------------------------------------------
>
> Key: PHOENIX-1879
> URL: https://issues.apache.org/jira/browse/PHOENIX-1879
> Project: Phoenix
> Issue Type: Task
> Reporter: Maryann Xue
>
> This is where we can setup RelOptCluster with a PhoenixRelMetadataProvider,
> add/or remove RelOptRules, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)