-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior
Description
Consider this simple example where primary keys match but non-primaries don't.
@schema
class DataA(dj.Lookup):
definition = """
idx : int
---
a : int
"""
@property
def contents(self):
yield from zip(range(5), range(5))
@schema
class DataB(dj.Lookup):
definition = """
idx : int
---
a : int
"""
@property
def contents(self):
yield from zip(range(5), range(5, 10))DataA().project() * DataB().project() should have five entries, but it has zero. When looking at the mysql-query, one can see that the data is not projected before the join. I generated a test case for that (this exact example). It is part of pull request #189.
Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behavior