3 | 3 | As for `RelatedIn`, the things are weird here. It seems this case is handled differently and already works correctly, and worked even before #31667 (`test_ticket20024_related_in`). It was probably fixed in #13815 long ago. There is `IS NOT NULL` in the subquery, actually there are two next to each other. One is coming from `split_exclude()` (called in `build_filter()`), but the other one -- I couldn't find. Also, what looks like another thing to take a closer look at -- there is `NOT IN (None)` instead of `NOT IN (NULL)` in the SQL for the first query in that test, when the `rhs.discard(None)` line is removed. |