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.
Consider this simple example where primary keys match but non-primaries don't.
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.