featurebyte.FunctionParameter¶
class FunctionParameter( 
name: str, 
dtype: Union[DBVarType, str], 
default_value: Union[bool, int, float, str, Timestamp, NoneType]=None, 
test_value: Union[bool, int, float, str, Timestamp, NoneType]=None
)Description¶
FunctionParameter is used to define the input parameters of a UserDefinedFunction.
Parameters¶
- name: str
 Name of the function input parameter (required)
- dtype: Union[DBVarType, str]
 Data type of the function input parameter (required)
- default_value: Union[bool, int, float, str, Timestamp, NoneType]
 Default value of the function input parameter (optional). Default value is used to make the function input parameter optional.
- test_value: Union[bool, int, float, str, Timestamp, NoneType]
 Test value of the function input parameter (optional). Test value is used to check the execution of the function during the creation & update of the UserDefinedFunction.