Il mer 25 set 2019, 23:38 Stamatis Zampetakis ha
scritto:
> Hi Enrico,
>
> The ReduceExpressionsRule.FILTER_INSTANCE is using the simplifier so if it
> works
> correctly I don't think there is anything more to be done.
>
Fine.
Cheers
Enrico
>
> Best,
> Stamatis
>
> On Wed, Sep 25, 2019 at 5:31
Hi Enrico,
The ReduceExpressionsRule.FILTER_INSTANCE is using the simplifier so if it
works
correctly I don't think there is anything more to be done.
Best,
Stamatis
On Wed, Sep 25, 2019 at 5:31 PM Enrico Olivelli wrote:
> Thank you for your feedback.
>
> Actually ReduceExpressionsRule.FILTER_
Thank you for your feedback.
Actually ReduceExpressionsRule.FILTER_INSTANCE fixes the problem.
RelOptPlanner optPlanner = cluster.getPlanner();
optPlanner.addRule(ReduceExpressionsRule.FILTER_INSTANCE);
This code I had was wrong:
final FrameworkConfig config = Frameworks.newConfigBuilder()
A few thoughts on this.
0. I am surprised that this simplification does not happen, and I think we
should do it. Specifically, "filter(x = 0 and x is not null)" should simplify
to “filter(x = 0)”.
1. Enrico, please log a JIRA case now, and transcribe the key points of this
discussion into the
Il giorno mar 24 set 2019 alle ore 13:45 XING JIN
ha scritto:
> "v = 1 and v is null"
> cannot be simplified to "v = 1" not matter v is nullable or not nullable
>
> If you really mean that "v is not null", I made below test case in
> RelOptRulesTest.java for illustration:
>
>
> // mgr is nullable
"v = 1 and v is null"
cannot be simplified to "v = 1" not matter v is nullable or not nullable
If you really mean that "v is not null", I made below test case in
RelOptRulesTest.java for illustration:
// mgr is nullable
@Test public void testDEV() throws Exception {
HepProgram program = ne
Il mar 24 set 2019, 11:50 Feng Zhu ha scritto:
> Hi, Enrico,
> I'm a little confused about your expectations. Could you clarify it?
> Moreover, is it right for the below simplification (do you mean v is not
> null)?
> (v=1 and v is null) -> v=1
> (do you mean v is not null?)
>
Yes, sorry
Enric
Hi, Enrico,
I'm a little confused about your expectations. Could you clarify it?
Moreover, is it right for the below simplification (do you mean v is not
null)?
(v=1 and v is null) -> v=1
(do you mean v is not null?)
Best regards
Enrico Olivelli 于2019年9月24日周二 下午5:41写道:
> Hi,
> I have a query li
Hi,
I have a query like
SELECT * FROM MYTABLE WHERE v = 1 and v is null
I am expecting Calcite to simplify it to
SELECT * FROM MYTABLE WHERE v = 1
but this does not happen.
Is any rule I should enable in order to make it happen ?
This is the configuration of my Volcano planner:
final Framewo