-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
The result of inl_merge_join with the enum type join column is wrong #24473
Comments
merge_join plan also have the same problem |
/assign |
/assign |
It seems enum shouldn't use index to participate merge_join/inl_merge_join, because enum index is order by values, not name.
|
I agree, unless compareFunc can be added a enum type, or we can make field type as int instead of string to avoid comparing by string? |
Logic conflict with order and |
You can disable the index merge join for enum at |
And for merge join. It may be caused by that we just push the order property down to the index but without telling the index which order to follow. So it goes wrong. A quick fix is also banning the enum type for merge join at |
I will try. |
Please edit this comment or add a new comment to complete the following informationNot a bug
Duplicate bug
BugNote: Make Sure that 'component', and 'severity' labels are added 1. Root Cause Analysis (RCA) (optional)2. Symptom (optional)3. All Trigger Conditions (optional)4. Workaround (optional)5. Affected versions6. Fixed versions |
The release-5.0 has the same problem |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The plan is
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
Release Version: v4.0.0-beta.2-2807-g289dcfefd-dirty
Edition: Community
Git Commit Hash: 289dcfe
Git Branch: master
UTC Build Time: 2021-05-06 15:11:16
GoVersion: go1.13
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
The text was updated successfully, but these errors were encountered: