Validates a function call: only custom aggregates can use DISTINCT, and custom aggregates are validated like built-in aggregates, see aggregateIsAllowed.
Validates a function call: only custom aggregates can use DISTINCT, and custom aggregates are validated like built-in aggregates, see aggregateIsAllowed.