Repository navigation
fix(pipeline): a loaded job gives MergeJoin and SemiJoin their inputs in argument order (ITL-1417) #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eywalker
merged 4 commits into
main
from
eywalker/itl-1417-a-loaded-job-can-run-mergejoin-or-semijoin
Nov 23, 2026
Merged
fix(pipeline): a loaded job gives MergeJoin and SemiJoin their inputs in argument order (ITL-1417) #513
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
556aa10
fix(pipeline): a loaded job gives an ordered operator its inputs in a…
556effa
fix(pipeline): a legacy job file loads a multi-input operator only wh…
dc4a04d
test(pipeline): name ITL-1419 in the pinned repeated-input test (ITL-…
8e2edf4
fix(pipeline): refuse a legacy binary operator given one stream twice…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ### Fixed | ||
|
|
||
| - A saved and loaded job could run `MergeJoin` or `SemiJoin` with its two inputs swapped | ||
| when another step over its second input had been recorded first: the loader took an | ||
| operator's inputs in the order the steps were recorded. A saved job now lists each | ||
| operator's inputs in argument order (`inputs` in the node's entry), and loading uses that | ||
| list. A job file saved before this fix loads an operator over two or more inputs only when | ||
| the operator is known to be commutative (`Join`, `Rejoin`, or a custom operator whose | ||
| `argument_symmetry` on its inputs is a flat `frozenset` of them); any other (`MergeJoin`, | ||
| `SemiJoin`, an operator kept read-only on load) is refused with a message to save the job | ||
| again from its code. Loaded read-only nodes keep their inputs. |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ## `src/orcapod/pipeline/job.py` — reading a loaded `PipelineJob` | ||
|
|
||
| ### AO1 — A loaded job could run MergeJoin or SemiJoin with its inputs swapped | ||
| **Status:** resolved | ||
| **Severity:** critical | ||
| **Issue:** ITL-1417 | ||
|
|
||
| A saved job listed an operator's inputs only through the edge list, whose order follows | ||
| the order the steps were recorded in, and both loaders (`Pipeline.load`, `PipelineJob.load`) | ||
| gave the operator its inputs in that order (the job loader through the hash graph's | ||
| predecessors, which a copy reorders again). With another step over the second input recorded | ||
| first, a loaded `MergeJoin(left, right)` ran as `MergeJoin(right, left)`: a job run with | ||
| `load_only=True` returned `[[100, 1], [101, 2]]` where the live job had `[[1, 100], [2, 101]]`. | ||
| `SemiJoin` kept the wrong side. Commutative operators (`Join`, `Rejoin`) were not affected. | ||
| Found while building ITL-1387. | ||
|
|
||
| **Fix:** every saved operator node lists its inputs' keys in argument order under `inputs` | ||
| (format 0.4.0, added within the version), and both loaders build an operator's inputs from | ||
| that list. A file saved before has no list: an operator over two or more different inputs | ||
| loads only when it is positively known to be commutative (available, and its | ||
| `argument_symmetry` on the rebuilt inputs is a flat `frozenset` of them); anything else is | ||
| refused at load (its order cannot be known). Review of the PR (Codex): the check asks the | ||
| symmetry of the rebuilt streams, not hash strings; a nested group and a read-only operator | ||
| are refused; a read-only node keeps its inputs. | ||
| `tests/test_pipeline/test_loaded_argument_order.py`. |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.