Aleksey Plekhanov created IGNITE-25060: ------------------------------------------
Summary: Calcite engine. Wrong logic for common part of disjunction operands removal Key: IGNITE-25060 URL: https://issues.apache.org/jira/browse/IGNITE-25060 Project: Ignite Issue Type: Bug Reporter: Aleksey Plekhanov Assignee: Aleksey Plekhanov Entire disjunction should be eliminated if one of the operands became empty, for example: "(c1 = 0) or (c1 = 0 and c2 = 0) or (c1 = 0 and c2 = 1)" Should be converted to: "=($t0, 0)" But currently is converted to: "AND(=($t0, 0), SEARCH($t1, Sarg[0, 1]))" In case c1 = 0, c2 = 2 original expression returns "true", but converted return "false". -- This message was sent by Atlassian Jira (v8.20.10#820010)