ray.data.expressions.UUIDExpr.get_type#
- UUIDExpr.get_type(input_schema: pyarrow.Schema) pyarrow.DataType | None#
Resolve the output PyArrow data type given the input schema.
The default implementation converts
self.data_type(the construction-time hint) to a PyArrow type. That’s the right answer for self-contained expressions (LiteralExpr,UDFExpr,DownloadExpr,MonotonicallyIncreasingIdExpr,RandomExpr,UUIDExpr).Schema-dependent expressions (
ColumnExpr,BinaryExpr,UnaryExpr,AliasExpr,StarExpr) override this to resolve againstinput_schema.Returns
Noneif the type cannot be statically determined (for example, a UDF without a declaredreturn_dtypeor a column not found ininput_schema). Callers fall back to runtime inference (Dataset.schema()falling back to alimit(1)execution).