Note
For V4.4.1, this parameter is available starting with V4.4.1.
Description
ob_enable_python_udf specifies whether to enable the Python UDF feature.
Query the parameter
The
systenant and all user tenants can query the value of this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
The
systenant and user tenants can modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Boolean |
| Default value | FALSE |
| Value range | TRUE/FALSE |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
You must set the ob_python_home parameter to enable the Python UDF feature.
Examples
Enable the Python UDF feature
obclient> ALTER SYSTEM SET ob_enable_python_udf = TRUE tenant mysql;Disable the Python UDF feature
obclient> ALTER SYSTEM SET ob_enable_python_udf = FALSE tenant mysql;