Alexander Trushev created CALCITE-4912:
------------------------------------------
Summary: Confusing javadoc of RexSimplify.simplify
Key: CALCITE-4912
URL: https://issues.apache.org/jira/browse/CALCITE-4912
Project: Calcite
Issue Type: Bug
Components: core
Reporter: Alexander Trushev
Javadoc of RexSimplify.simplify says that
{code}
simplify(x = 1 AND y = 2 AND NOT x = 1) returns y = 2
{code}
but it is wrong for any policy:
x <- 1
y <- 2
x = 1 AND y = 2 AND NOT x = 1 == false
y = 2 == true
I guess it should have been like
{code}
simplify(y = 2 AND (x = 1 OR NOT x = 1 OR x IS NULL)) returns y = 2
{code}
which is true for any policy
--
This message was sent by Atlassian Jira
(v8.20.1#820001)