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 doe what you need.
On Wed, Sep 7, 2016 at 2:44 PM, CPC <[email protected]> wrote:
> Hi,
>
> Is there any utility/helper class in calcite to detect and simplify such a
> rexcall
>
> AND(=($0, 1), =($0, 2))
>
> to false.
>
> Thanks...