Note
This variable is available starting with V4.2.0.
Description
runtime_filter_type specifies the type of Runtime Filter at the tenant level.
Privilege requirements
Query variables
Global level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the value of global system variables.Session level
systenant and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the value of session system variables.
Modify variables
Global level
systenant can directly modify the value of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of global system variables.
Session level
systenant and all user tenants can directly modify the value of session system variables.
Attributes
| Attribute | Description |
|---|---|
| Parameter type | Varchar |
| Default value | BLOOM_FILTER,RANGE,IN |
| Value range |
NoteIf the value is BLOOM_FILTER, RANGE, or IN, at least one of them must be selected. |
| Scope |
|
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Session level
Set the Runtime Filter type to
range,bloom_filter, orin.obclient> SET runtime_filter_type = 'range,in,bloom_filter';Disable the Runtime Filter feature by executing the following statement:
obclient> SET runtime_filter_type = '';Global level
Set the Runtime Filter type at the tenant level to
range.obclient> SET GLOBAL runtime_filter_type = 'range';