Bruno Volpato created CALCITE-7817:
--------------------------------------

             Summary: Enumerable merge ANTI join drops left rows with NULL keys
                 Key: CALCITE-7817
                 URL: https://issues.apache.org/jira/browse/CALCITE-7817
             Project: Calcite
          Issue Type: Bug
            Reporter: Bruno Volpato


With ascending, NULLS LAST inputs, an equality ANTI join of left `[1, 2, NULL]` 
and right `[1]` returns `[2]`. The `NULL` key does not match under strict 
equality, so the result should be `[2, NULL]`.

The enumerable merge join stops processing left rows when it reaches a NULL 
join key. The ANTI path should preserve those rows across all merge-join 
advancement paths.

Fix and regression tests: https://github.com/apache/calcite/pull/5242



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to