ray.data.aggregate.ApproximateTopK.output_field#
- ApproximateTopK.output_field(input_schema: pyarrow.Schema) pyarrow.Field | None#
Return the PyArrow
Fieldthis aggregator produces.Returns
Noneby default; subclasses that know their output type override. Used byAggregate.infer_schema()to compute the post-aggregation schema without executing the plan. When any aggregator returnsNone, the entireAggregate.infer_schemareturnsNone(callers fall back to alimit(1)execution).