Skip to content

featurebyte.UserDefinedFunction.update_output_dtype

update_output_dtype(
output_dtype: Union[DBVarType, str]
)

Description

Update the output data type of the user-defined function.

Parameters

  • output_dtype: Union[DBVarType, str]
    The output data type of the user-defined function.

Examples

>>> cos_udf = catalog.get_user_defined_function("cos")
>>> cos_udf.update_output_dtype(DBVarType.INT)
>>> cos_udf.output_dtype
'INT'