Skip to content

SubqueryAggregate does not expose parameters other than distinct #9

@airstrike

Description

@airstrike

See

# Add test for output_field, distinct, and when resolved_expression.field.name isn't what we're aggregating
if not self.output_field:
self._output_field = self.output_field = target_expression.field
if self.distinct is not None:
aggregation = self.aggregate(target_expression, distinct=self.distinct)
else:
aggregation = self.aggregate(target_expression)

This makes the ordering argument in ArrayAgg impossible to use. Ditto for any custom Aggregation a user may want to write

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions