Skip to content

Proposed fix for #67 #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

quintonparker
Copy link
Contributor

No description provided.

@ashtul
Copy link
Contributor

ashtul commented Apr 30, 2020

@quintonparker
Can you please add a test?

@gkorland gkorland requested a review from mnunberg April 30, 2020 20:45
@mnunberg
Copy link
Contributor

@quintonparker can you add a test for this?

@mnunberg
Copy link
Contributor

lgtm otherwise

@quintonparker quintonparker force-pushed the value-error-issue-67 branch from b6f1e71 to 455ecdf Compare May 11, 2020 14:05
@quintonparker
Copy link
Contributor Author

@mnunberg oops. my bad. rebased with a test

@@ -86,8 +86,6 @@ class Group(object):
This object automatically created in the `AggregateRequest.group_by()`
"""
def __init__(self, fields, reducers):
if not fields:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quintonparker
Why remove this and then remove the test?
Aren't they both relevant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @ashtul

see #67

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically, aggregation queries that is possible on the cli is not reproducible with redisearch-py because this code is enforcing the fields var to be non-empty

@gkorland gkorland linked an issue Jul 5, 2020 that may be closed by this pull request
@gkorland gkorland merged commit 0d6f17f into RediSearch:master Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Aggregations - ValueError: need at least one field
4 participants