Skip to content

Commit

Permalink
Add description about table name/alias specifying for read_from_stora…
Browse files Browse the repository at this point in the history
…ge hint (#6164) (#6281)
  • Loading branch information
ti-chi-bot authored Aug 26, 2021
1 parent 2ea9bba commit 6a91712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimizer-hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ select /*+ AGG_TO_COP() */ sum(t1.a) from t t1;

### READ_FROM_STORAGE(TIFLASH[t1_name [, tl_name ...]], TIKV[t2_name [, tl_name ...]])

The `READ_FROM_STORAGE(TIFLASH[t1_name [, tl_name ...]], TIKV[t2_name [, tl_name ...]])` hint tells the optimizer to read specific table(s) from specific storage engine(s). Currently, this hint supports two storage engine parameters - `TIKV` and `TIFLASH`. For example:
The `READ_FROM_STORAGE(TIFLASH[t1_name [, tl_name ...]], TIKV[t2_name [, tl_name ...]])` hint tells the optimizer to read specific table(s) from specific storage engine(s). Currently, this hint supports two storage engine parameters - `TIKV` and `TIFLASH`. If a table has an alias, use the alias as the parameter of `READ_FROM_STORAGE()`; if the table does not has an alias, use the table's original name as the parameter. For example:

{{< copyable "sql" >}}

Expand Down

0 comments on commit 6a91712

Please sign in to comment.