[ENH] Add anti joins to conditional_join - #1633
Open
samukweku wants to merge 4 commits into
Open
Conversation
Contributor
|
This was referenced Aug 19, 2026
samukweku
force-pushed
the
issue-1627-anti-join
branch
from
August 20, 2026 03:11
50fc7da to
1416b3e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
how="left_anti"andhow="right_anti"toconditional_joinkeep="first"orkeep="last"ELI5
A conditional join asks whether rows from two tables satisfy the supplied rules. A left anti join keeps the left rows that never find a matching right row. A right anti join does the same from the other direction. For example, it can find events that do not fall inside any time window.
Performance
On a local 200,000-row
_create_framemicrobenchmark, the shared boolean-mask implementation improved unmatched-position handling by approximately 2.2x to 3.5x across left, right, outer, and anti joins. Broader result-materialization work is tracked separately in #1632.Validation
pixi run -e tests test: 1334 passed, 5 skipped, 48 xfailed, 17 xpassedgit diff --check: passedRepository-wide pre-commit currently reports existing Ruff failures in example notebooks and
janitor/functions/convert_date.py; none are in files changed by this PR.The
pixi.locklocal-package version refresh was generated by the repositorypixi-installhook after the upstream 0.32.24 version bump.Fixes #1627
Related: #1632