You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "comphead (via GitHub)" <gi...@apache.org> on 2026/09/01 16:14:29 UTC
[I] Fix join correctness issue [datafusion]
comphead opened a new issue, #24854:
URL: https://github.com/apache/datafusion/issues/24854
```
WITH mk_l(k, v) AS (
VALUES (1, 10), (2, 20), (3, 30), (4, 40), (CAST(NULL AS INTEGER), 50)
),
mk_r(k) AS (
VALUES (1), (2), (2), (CAST(NULL AS INTEGER))
)
SELECT l.k, l.v
FROM mk_l AS l
WHERE l.v > 35 OR l.k NOT IN (SELECT r.k FROM mk_r AS r)
ORDER BY l.k, l.v;
```
PostgreSQL
```
k | v
---+----
4 | 40
| 50
(2 rows)
```
DF
```
+------+----+
| k | v |
+------+----+
| 3 | 30 |
| 4 | 40 |
| NULL | 50 |
+------+----+
```
_Originally posted by @comphead in https://github.com/apache/datafusion/pull/24805#discussion_r3906053844_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Fix join correctness issue [datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #24854:
URL: https://github.com/apache/datafusion/issues/24854#issuecomment-5499552063
It was fixed by https://github.com/apache/datafusion/pull/21585
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Fix join correctness issue [datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead closed issue #24854: Fix join correctness issue
URL: https://github.com/apache/datafusion/issues/24854
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org
Re: [I] Fix join correctness issue [datafusion]
Posted by "comphead (via GitHub)" <gi...@apache.org>.
comphead commented on issue #24854:
URL: https://github.com/apache/datafusion/issues/24854#issuecomment-5496933601
Thanks @kumarUjjawal for catching this issue
> ```
> WITH mk_l(k, v) AS (
> VALUES (1, 10), (2, 20), (3, 30), (4, 40), (CAST(NULL AS INTEGER), 50)
> ),
> mk_r(k) AS (
> VALUES (1), (2), (2), (CAST(NULL AS INTEGER))
> )
> SELECT l.k, l.v
> FROM mk_l AS l
> WHERE l.v > 35 OR l.k NOT IN (SELECT r.k FROM mk_r AS r)
> ORDER BY l.k, l.v;
> ```
>
> PostgreSQL
>
> ```
> k | v
> ---+----
> 4 | 40
> | 50
> (2 rows)
> ```
>
> DF
>
> ```
> +------+----+
> | k | v |
> +------+----+
> | 3 | 30 |
> | 4 | 40 |
> | NULL | 50 |
> +------+----+
> ```
>
> _Originally posted by [@comphead](https://github.com/comphead) in [#24805 (comment)](https://github.com/apache/datafusion/pull/24805#discussion_r3906053844)_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org