Skip to content

Commit b6f1e71

Browse files
author
Q
committed
Proposed fix. Allow empty group_by([], reducer) ie. GROUPBY 0
1 parent f8ec328 commit b6f1e71

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

redisearch/aggregation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ class Group(object):
8686
This object automatically created in the `AggregateRequest.group_by()`
8787
"""
8888
def __init__(self, fields, reducers):
89-
if not fields:
90-
raise ValueError('need at least one field')
9189
if not reducers:
9290
raise ValueError('Need at least one reducer')
9391

0 commit comments

Comments
 (0)