Checks one aggregation against the input schema, stopping at its first problem: its function and column (validateAggregationFunctionAndColumn), then its output name, which is given, is a valid column name (isValidColumnName), is no input column's name, keys included, in any case (foldColumnName), and no other aggregation's, in any case either: the engine fails on a duplicate name with no location. Exported so an editor can mark each row.

  • Parameters

    • aggregations: readonly ColumnAggregation[]
    • index: number
    • schema: Schema
    • Optionalerrors: string[]
    • use: AggregationUse = GROUP_AGGREGATION_USE
    • takenNames: readonly string[] = ...

      The input's columns whose names it can't take: all of them, but for a group drawn as Pure allows it (Group.allowsInputNames), which keeps only its keys

    Returns boolean