output_field#

Unique.output_field(input_schema: Schema) → Field | None#

Return the PyArrow Field this aggregator produces.

Returns None by default; subclasses that know their output type override. Used by Aggregate.infer_schema() to compute the post-aggregation schema without executing the plan. When any aggregator returns None, the entire Aggregate.infer_schema returns None (callers fall back to a limit(1) execution).

Parameters:

input_schema (Schema) – The schema of the aggregator’s input blocks.

Returns:

The output pa.Field, or None if this aggregator can’t infer its output type.

Return type:

Field | None