runtime_filter_type

2024-06-28 05:30:30  Updated

runtime_filter_type specifies the runtime filter type at the tenant level.

Note

This variable was introduced in OceanBase Database V4.2.0.

Attribute Description
Type Varchar
Default value BLOOM_FILTER,RANGE,IN
Value range
  • BLOOM_FILTER: filters data by using a runtime filter of the Bloom Filter type. The data that is not within the value range specified by the Bloom Filter runtime filter is filtered out.
  • RANGE: filters data by using a runtime filter of the RANGE type, which specifies a value range that covers the maximum and minimum values in a build table. The data that is not within the value range is filtered out.
  • IN: filters data by using a runtime filter of the IN type, whose internal data structure is a hash table. The data that is not contained in the hash table is filtered out.
  • Empty: If the variable value is empty, the Runtime Filter feature is disabled.

Note

If you want to use runtime filters, you must specify at least one of the BLOOM_FILTER, RANGE, and IN values.

Effective scope
  • Global
  • Session
Read-only No
Plan generation affected Yes
Effective only after restart No

Examples

set runtime_filter_type = 'range,in,bloom_filter';
set global runtime_filter_type = 'range';
set runtime_filter_type = '';

Contact Us