Note
This variable was introduced in V4.2.0.
Description
The runtime_filter_max_in_num variable specifies the maximum number of distinct values (NDV) in a column for which the runtime in filter is used.
Privilege requirements
Query variables
Global level
Users in the
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_GLOBAL_VARIABLE(Oracle mode) orinformation_schema.GLOBAL_VARIABLES(MySQL mode) to query the value of a global system variable.Session level
Users in the
systenant and all user tenants can execute theSHOW VARIABLESstatement or viewSYS.TENANT_VIRTUAL_SESSION_VARIABLE(Oracle mode) orinformation_schema.SESSION_VARIABLES(MySQL mode) to query the value of a session system variable.
Modify variables
Set the variable at the global level
Users in the
systenant can directly modify the value of a global system variable.MySQL users in a user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.Oracle users in a user tenant of V4.x 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
Users in the
systenant and all user tenants can directly modify the value of a session system variable in their own tenant.
Attributes
| Attribute | Description |
|---|---|
| Type | int |
| Default value | 1024 |
| Value range | [0, 10240] |
| Scope |
|
| Modifiable | Yes. You can modify the value by using the SET statement. |
Sample configurations
set runtime_filter_wait_time_ms = 100;
set global runtime_filter_max_in_num = 512;