Note
This variable was introduced in V4.2.0.
Description
The runtime_filter_type variable specifies the type of runtime filter for a tenant.
Privilege requirements
Query variables
Global level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or view theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the value of a global system variable.Session level
The
systenant and all user tenants can execute theSHOW VARIABLESstatement or view theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the value of a session system variable.
Modify variables
Set the variable at the global level
The
systenant can directly modify the value of a global system variable.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.For V4.x, Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the value of a global system variable starting from V4.2.0.
Set the variable at the session level
The
systenant and all user tenants can directly modify the value of a session system variable in the current tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | varchar |
| Default value | BLOOM_FILTER,RANGE,IN |
| Value range |
NoteIf the value is BLOOM_FILTER, RANGE, or IN, you must select at least one of them. |
| Effective scope |
|
| Modifiable | Yes. You can modify the value by using the SET statement. |
Examples
set runtime_filter_type = 'range,in,bloom_filter';
set global runtime_filter_type = 'range';
set runtime_filter_type = '';