[
https://issues.apache.org/jira/browse/CALCITE-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367896#comment-14367896
]
Eugene Zimichev commented on CALCITE-629:
-----------------------------------------
Hi, Julian.
Use case is to redefine planner used to optimize query, I'd like to use
HepPlanner to split query optimization to separate stages with different sets
of rules.
At first I looked at creating own Program and used HOOK.Program to set it, but
it looks like some rules (e.g. EnumerableProjectRule) call method convert which
uses planner from RelOptCluster and default VolcanoPlanner is not really happy
with HepRelVertex nodes. This planner is set in CalcitePrepareImpl by planner
factories, so I guess they also should be redefined somehow.
> Can't use extended version of CalcitePrepareImpl with JDBC Driver
> -----------------------------------------------------------------
>
> Key: CALCITE-629
> URL: https://issues.apache.org/jira/browse/CALCITE-629
> Project: Calcite
> Issue Type: Bug
> Affects Versions: 1.0.0-incubating
> Reporter: Eugene Zimichev
> Assignee: Julian Hyde
>
> Constructor of CalciteConnectionImpl directly uses field
> Driver#prepareFactory, although Driver class provides protected method that
> can redefine it.
> Because of field hiding user can't register a custom extension of
> CalciteConnectionImpl.
> Proposed fix - use createPrepareFactory method instead of field access.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)