Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion local_examples/client-specific/redis-py/home_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
# STEP_START query3
req = aggregations.AggregateRequest("*").group_by(
'@city', reducers.count().alias('count')
).sort_by(aggregations.Asc('@city'))
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Aggregation omits required city sort

High Severity

query3 dropped .sort_by(aggregations.Asc('@city')), so group order is no longer deterministic. The hidden assert and documented output still expect London then Tel Aviv, the page copy says results are sorted by city, and PR #4290's squash message records SORTBY @city ASC as a constraint.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 7398e26. Configure here.


aggResult = r.ft("idx:users").aggregate(req).rows
print(aggResult)
Expand Down
Loading