Repository navigation
docs(semantic-matching): unrelated namesakes, not missing lineage - #305
Open
dimitri-yatsenko wants to merge 1 commit into
Open
dimitri-yatsenko wants to merge 1 commit into
dimitri-yatsenko wants to merge 1 commit into
Conversation
Lineage follows foreign keys, so an attribute that no foreign key brings in (a native secondary attribute, a computed attribute, or a key promoted by dj.U) has none, and a join on two such namesakes is refused as a join on unrelated attributes. The explanation and the spec now say so, show the new messages, and no longer send users to rebuild_lineage() for this error. The union rule is corrected to what DataJoint checks: the same primary key and no secondary attribute in common.
dimitri-yatsenko
requested review from
MilagrosMarin,
lum-agilyti and
ttngu207
October 18, 2026 01:41
This branch has not been deployed
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.
Docs for datajoint/datajoint-python#1640 and its fix, datajoint/datajoint-python#1642.
Lineage follows foreign keys: a table's native primary-key attributes start it, and foreign keys pass it on. An attribute that no foreign key brings in has none: a native secondary attribute, an attribute computed in a projection, or a key that
dj.Upromotes. A join on two such namesakes is refused as a join on unrelated attributes, not as missing lineage.semantic-matching.md:dj.U.input_hash, and how to rename or exclude it.rebuild_lineage()for this error.reference/specs/semantic-matching.md:Merge with or after datajoint/datajoint-python#1642.