Skip to content

Commit

Permalink
system variable: add the description for mpp cte shared scan (#14007)
Browse files Browse the repository at this point in the history
  • Loading branch information
winoros committed Jun 28, 2023
1 parent 91a97ce commit dc95dcb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -3510,6 +3510,18 @@ mysql> desc select count(distinct a) from test.t;
- This variable is used to control whether to enable the [TiFlash late materialization](/tiflash/tiflash-late-materialization.md) feature. Note that TiFlash late materialization does not take effect in the [fast scan mode](/tiflash/use-fastscan.md).
- When this variable is set to `OFF` to disable the TiFlash late materialization feature, to process a `SELECT` statement with filter conditions (`WHERE` clause), TiFlash scans all the data of the required columns before filtering. When this variable is set to `ON` to enable the TiFlash late materialization feature, TiFlash can first scan the column data related to the filter conditions that are pushed down to the TableScan operator, filter the rows that meet the conditions, and then scan the data of other columns of these rows for further calculations, thereby reducing IO scans and computations of data processing.

### tidb_opt_enable_mpp_shared_cte_execution <span class="version-mark">New in v7.2.0</span>

> **Warning:**
>
> The feature controlled by this variable is not fully functional in the current TiDB version. Do not change the default value.
- Scope: SESSION | GLOBAL
- Persists to cluster: Yes
- Type: Boolean
- Default value: `OFF`
- This variable controls whether the non-recursive [common table expressions (CTE)](/sql-statements/sql-statement-with.md) can be executed on TiFlash MPP instead of on TiDB.

### tidb_opt_fix_control <span class="version-mark">New in v7.1.0</span>

<CustomContent platform="tidb">
Expand Down

0 comments on commit dc95dcb

Please sign in to comment.