Skip to content

Commit 2de6fad

Browse files
committed
*: improve INL_HASH_JOIN document about collation incompatibility
Signed-off-by: Weizhen Wang <[email protected]>
1 parent a405139 commit 2de6fad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

optimizer-hints.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,9 +930,9 @@ The warning is as follows:
930930

931931
In this case, you need to place the hint directly after the `SELECT` keyword. For more details, see the [Syntax](#syntax) section.
932932

933-
### INL_JOIN hint does not take effect due to collation incompatibility
933+
### INL_JOIN, INL_HASH_JOIN hint does not take effect due to collation incompatibility
934934

935-
When the collation of the join key is incompatible between two tables, the `IndexJoin` operator cannot be utilized to execute the query. In this case, the [`INL_JOIN` hint](#inl_joint1_name--tl_name-) does not take effect. For example:
935+
When the collation of the join key is incompatible between two tables, the `IndexJoin` operator cannot be utilized to execute the query. In this case, the [`INL_JOIN` hint](#inl_joint1_name--tl_name-) or [`INL_HASH_JOIN` hint](#inl_hash_join) does not take effect. For example:
936936

937937
```sql
938938
CREATE TABLE t1 (k varchar(8), key(k)) COLLATE=utf8mb4_general_ci;
@@ -955,7 +955,7 @@ The execution plan is as follows:
955955
5 rows in set, 1 warning (0.00 sec)
956956
```
957957

958-
In the preceding statements, the collations of `t1.k` and `t2.k` are incompatible (`utf8mb4_general_ci` and `utf8mb4_bin` respectively), which prevents the `INL_JOIN` or `TIDB_INLJ` hint from taking effect.
958+
In the preceding statements, the collations of `t1.k` and `t2.k` are incompatible (`utf8mb4_general_ci` and `utf8mb4_bin` respectively), which prevents the `INL_JOIN`, `TIDB_INLJ` or `INL_HASH_JOIN` hint from taking effect.
959959

960960
```sql
961961
SHOW WARNINGS;

0 commit comments

Comments
 (0)