Skip to content

Commit

Permalink
Allow multiple LOAD arguments with wildcard LOAD aggregations
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed Dec 14, 2023
1 parent f6a4b49 commit 6bfd341
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion redis/commands/search/aggregation.py
Expand Up @@ -321,7 +321,10 @@ def build_args(self) -> List[str]:
if self._loadall:
ret.append("LOAD")
ret.append("*")
elif self._loadfields:

# NOTE(imalinovskyi): Users should be able to use @__key attribute
# in wildcard queries
if self._loadfields:
ret.append("LOAD")
ret.append(str(len(self._loadfields)))
ret.extend(self._loadfields)
Expand Down

0 comments on commit 6bfd341

Please sign in to comment.