Re: RexCall Logic

2016-09-09 Thread Jesus Camacho Rodriguez
It should indeed cover that case. -- Jesús On 9/7/16, 11:02 PM, "Julian Hyde" wrote: >Jesus added something very close to that in >https://issues.apache.org/jira/browse/CALCITE-1220: > >// condition not satisfiable >checkSimplifyFilter(and(eq(aRef, literal1),

Re: RexCall Logic

2016-09-07 Thread Julian Hyde
Jesus added something very close to that in https://issues.apache.org/jira/browse/CALCITE-1220: // condition not satisfiable checkSimplifyFilter(and(eq(aRef, literal1), eq(bRef, literal10), eq(aRef, bRef)), "false"); You could add a new case in RexProgramTest and see whether it

RexCall Logic

2016-09-07 Thread CPC
Hi, Is there any utility/helper class in calcite to detect and simplify such a rexcall AND(=($0, 1), =($0, 2)) to false. Thanks...