8000 fix(or): join an or sharing no variable with earlier clauses as a cross product (#610, backport) by adityamukho · Pull Request #613 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content 8000

fix(or): join an or sharing no variable with earlier clauses as a cross product (#610, backport) - #613

Merged
adityamukho merged 1 commit into
mainfrom
fix/610-or-cross-product-v2
Oct 16, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/610-or-cross-product-v2

Conversation

@adityamukho
@adityamukho 8000 adityamukho commented Oct 16, 2026
Copy link
Copy Markdown
Collaborator

Backport of #612 (v3) to v2.0.x, for #610. Every bug fix goes to v2.0.x until v3.0.0.

[?x :edge ?z] (or [?p :edge :b] [?p :edge :c]) returned no rows. The fast path in apply_or_clauses replaced the incoming rows with the branch union when they shared no user-visible variable. It is removed, so the hash join with an empty key now gives the cross product. or-join keeps refusing unbound join variables (INT-018).

Six new tests in tests/disjunction_test.rs. Full suite: 1,264 passing, 9 ignored. CHANGELOG [Unreleased] and the test counts are updated.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HyLscCUuJ1GQpdAeX79EdR

…ss product (#610)

Backport of the v3 fix. apply_or_clauses' fast path replaced the incoming
rows with the branch union when the two shared no user-visible variable, so
after an earlier clause binding other variables every row was dropped. The
special case is removed: the hash join with an empty key yields the cross
product. or-join keeps refusing unbound join variables (INT-018).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyLscCUuJ1GQpdAeX79EdR
@codecov
codecov Bot commented Oct 16, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adityamukho
adityamukho merged commit c21168f into main Oct 16, 2026
22 checks passed
@adityamukho
adityamukho deleted the fix/610-or-cross-product-v2 branch October 16, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0