Skip to content

Commit 4e4fc06

Browse files
Apply suggestions from code review
Co-authored-by: Raphael Guzman <[email protected]>
1 parent 13b77d4 commit 4e4fc06

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Bugfix - Replace use of numpy aliases of built-in types with built-in type. (#938) PR #939
66
* Bugfix - `ExternalTable.delete` should not remove row on error (#953) PR #956
77
* Bugfix - Fix error handling of remove_object function in `s3.py` (#952) PR #955
8-
* Bugfix - Fix regression issue with DISTINCT clause and GROUP_BY (#914) PR #963
8+
* Bugfix - Fix regression issue with `DISTINCT` and `GROUP_BY` clause (#914) PR #963
99

1010
### 0.13.2 -- May 7, 2021
1111
* Update `setuptools_certificate` dependency to new name `otumat`

datajoint/expression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def where_clause(self):
104104
return '' if not self.restriction else ' WHERE(%s)' % ')AND('.join(
105105
str(s) for s in self.restriction)
106106

107-
def make_sql(self, fields=None, distinct=True):
107+
def make_sql(self, fields=None):
108108
"""
109109
Make the SQL SELECT statement.
110110
:param fields: used to explicitly set the select attributes

docs-parts/intro/Releases_lang1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Bugfix - Replace use of numpy aliases of built-in types with built-in type. (#938) PR #939
55
* Bugfix - `ExternalTable.delete` should not remove row on error (#953) PR #956
66
* Bugfix - Fix error handling of remove_object function in `s3.py` (#952) PR #955
7-
* Bugfix - Fix regression issue with DISTINCT clause and GROUP_BY (#914) PR #963
7+
* Bugfix - Fix regression issue with ``DISTINCT`` and ``GROUP_BY`` clause (#914) PR #963
88

99
0.13.2 -- May 7, 2021
1010
----------------------

tests/test_fetch.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,9 @@ def test_query_caching(self):
292292
def test_fetch_group_by(self):
293293
# https://github.com/datajoint/datajoint-python/issues/914
294294

295-
expected_data = [{'parent_id': 1}]
296-
fetched_data = Parent().fetch('KEY', order_by='name')
297-
print(fetched_data)
298-
assert fetched_data == expected_data
295+
assert Parent().fetch('KEY', order_by='name') == [{'parent_id': 1}]
299296

300-
def test_dj_U_DISTINCT(self):
297+
def test_dj_u_distinct(self):
301298
# Test developed to see if removing DISTINCT from the select statement
302299
# generation breakes the dj.U universal set imlementation
303300

0 commit comments

Comments
 (0)