Is there a way to inject a custom org.apache.calcite.prepare.Planner? 
PlannerImpl contains a FrameworkConfig, and in that they can override 
SqlToRelConverter.Config. 

Of course they want really, really easy. But sub-query threshold is a planning 
parameter and I don’t want this stuff to be really easy. Just as Ford does not 
want to make it easy for you to alter the gas:air ratio going into your engine.

The sketch in paragraph 1 may sound complicated but it’s just a few lines of 
code.

Julian


> On Feb 5, 2019, at 5:59 AM, Stamatis Zampetakis <[email protected]> wrote:
> 
> The author of the Jira [1] wants an easy way to configure the sub query
> threshold potentially using some property.
> 
> He has pinged us quite a few times so it would be good to provide a
> direction on how to do it or give a definitive answer that we are not going
> to do it.
> 
> I gave my opinion in the Jira but it would be great if somebody else can
> also have a look.
> 
> Best,
> Stamatis
> 
> [1] https://issues.apache.org/jira/browse/CALCITE-2696

Reply via email to