Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*: improve INL_HASH_JOIN document about collation incompatibility #17119

Merged
merged 5 commits into from
Jun 11, 2024
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions optimizer-hints.md
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,9 @@ The warning is as follows:

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

### INL_JOIN hint does not take effect due to collation incompatibility
### INL_JOIN, INL_HASH_JOIN, INL_MERGE_JOIN hint does not take effect due to collation incompatibility
qiancai marked this conversation as resolved.
Show resolved Hide resolved

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:
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-), [`INL_HASH_JOIN` hint](#inl_hash_join) or [`INL_MERGE_JOIN`](#inl_merge_join) does not take effect. For example:
qiancai marked this conversation as resolved.
Show resolved Hide resolved

```sql
CREATE TABLE t1 (k varchar(8), key(k)) COLLATE=utf8mb4_general_ci;
Expand Down
Loading