Skip to content

Commit c1ca1f9

Browse files
committed
Initial fix attempt.
1 parent 7764467 commit c1ca1f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datajoint/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def create(cls, arg, group, keep_all_rows=False):
554554
if inspect.isclass(group) and issubclass(group, QueryExpression):
555555
group = group() # instantiate if a class
556556
assert isinstance(group, QueryExpression)
557-
if keep_all_rows and len(group.support) > 1:
557+
if keep_all_rows and len(group.support) > 1 or group.heading.new_attributes:
558558
group = group.make_subquery() # subquery if left joining a join
559559
join = arg.join(group, left=keep_all_rows) # reuse the join logic
560560
result = cls()

0 commit comments

Comments
 (0)