[ 
https://issues.apache.org/jira/browse/CALCITE-5090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde updated CALCITE-5090:
---------------------------------
    Description: 
We want to be able to change Avatica's planner, for that, we need to be able to 
sub-class {{CalciteMetaImpl}}. That is not possible at the moment because the 
constructor of {{CalciteMetaImpl}} takes a parameter of type 
{{CalciteConnectionImpl}} as an argument and {{class CalciteConnectionImpl}} is 
package private.

The solution could be to add a constructor with a parameter of type 
{{CalciteConnection}}. At runtime the argument would still be an instance of 
{{CalciteConnectionImpl}}, and the constructor can downcast it.

  was:We want to be able to change Avatica's planner, for that, we need to be 
able to overrideĀ  CalciteMetaImpl. IT is not possible at the moment because 
CalciteMetaImpl expects a CalciteConnectionImpl as an argument and 
CalciteConnectionImpl is package private.


> Avatica: make it possible to inherit from CalciteMetaImpl 
> ----------------------------------------------------------
>
>                 Key: CALCITE-5090
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5090
>             Project: Calcite
>          Issue Type: Wish
>            Reporter: Marieke Gueye
>            Priority: Minor
>
> We want to be able to change Avatica's planner, for that, we need to be able 
> to sub-class {{CalciteMetaImpl}}. That is not possible at the moment because 
> the constructor of {{CalciteMetaImpl}} takes a parameter of type 
> {{CalciteConnectionImpl}} as an argument and {{class CalciteConnectionImpl}} 
> is package private.
> The solution could be to add a constructor with a parameter of type 
> {{CalciteConnection}}. At runtime the argument would still be an instance of 
> {{CalciteConnectionImpl}}, and the constructor can downcast it.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to