Skip to content

Commit 3b5699b

Browse files
1 parent 69c823a commit 3b5699b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/relational_operand.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ def make_argument_subquery(arg):
574574
"""
575575
Decide when a Join argument needs to be wrapped in a subquery
576576
"""
577-
return Subquery.create(arg) if isinstance(arg, (GroupBy, Projection)) else arg
577+
return Subquery.create(arg) if isinstance(arg, (GroupBy, Projection)) or arg.restriction else arg
578578

579579
@property
580580
def from_clause(self):

0 commit comments

Comments
 (0)