We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89384f6 commit 15146b1Copy full SHA for 15146b1
datajoint/expression.py
@@ -443,7 +443,7 @@ def __len__(self):
443
""":return: number of elements in the result set e.g. ``len(q1)``."""
444
return self.connection.query(
445
'SELECT {select_} FROM {from_}{where}'.format(
446
- select_=('DISTINCT count(*)' if any(self._left)
+ select_=('count(*)' if any(self._left)
447
else 'count(DISTINCT {fields})'.format(fields=self.heading.as_sql(
448
self.primary_key, include_aliases=False))),
449
from_=self.from_clause(),
0 commit comments