ray.data.expressions.MonotonicallyIncreasingIdExpr.to_field#
- MonotonicallyIncreasingIdExpr.to_field(input_schema: pyarrow.Schema) pyarrow.Field | None#
Return the output PyArrow
Fieldgiven the input schema.Defaults to
pa.field(self.name, self.get_type(input_schema), nullable=self.nullable(input_schema)). ReturnsNonewhen either the type can’t be resolved or the expression has no name (the latter is invalid for projection list entries;Projectenforces this in__post_init__).