Validates a function call: only custom aggregates can use DISTINCT, and custom aggregates are validated like built-in aggregates, see aggregateIsAllowed.
The function call to validate.
Whether a function call is a custom aggregate.
The parse mode at the function call.
Optional
The transformer to traverse the arguments with.
Validates a function call: only custom aggregates can use DISTINCT, and custom aggregates are validated like built-in aggregates, see aggregateIsAllowed.