fix(query): allow AggregateFunction as well in apply_field_permissions
Without this `fields=[{"COUNT": "name"}]` didn't work, although fields=[{"COUNT": "NAME"}] did.
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
parent
1d2a73f659
commit
8e03924356
1 changed files with 1 additions and 1 deletions
|
|
@ -973,7 +973,7 @@ class Engine:
|
|||
elif hasattr(field, "alias") and field.alias and field.name in permitted_fields_set:
|
||||
allowed_fields.append(field)
|
||||
|
||||
elif isinstance(field, PseudoColumnMapper):
|
||||
elif isinstance(field, AggregateFunction | PseudoColumnMapper):
|
||||
# Typically functions or complex terms
|
||||
allowed_fields.append(field)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue