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

Unexpected result of MySQL test with Index Merge Join hint #20953

Closed
SunRunAway opened this issue Nov 10, 2020 · 1 comment · Fixed by #20581
Closed

Unexpected result of MySQL test with Index Merge Join hint #20953

SunRunAway opened this issue Nov 10, 2020 · 1 comment · Fixed by #20581
Labels
severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

run test [issue_20571] err: sql:SELECT /*+ inl_merge_join(t2) */ count(*) from table_400_ascii_ascii_bin_undef_1 t1 left join table_300_latin1_latin1_bin_undef_2 t2 on t1.  = t2.  and t1.  < 9143449222791010176 where t1.  != -322  order by t1.pk, t2.pk;: failed to run query 
"SELECT /*+ inl_merge_join(t2) */ count(*) from table_400_ascii_ascii_bin_undef_1 t1 left join table_300_latin1_latin1_bin_undef_2 t2 on t1.  = t2.  and t1.  < 9143449222791010176 where t1.  != -322  order by t1.pk, t2.pk;" 
 around line 38, 
we need(340):
SELECT /*+ inl_merge_join(t2) */ count(*) from table_400_ascii_ascii_bin_undef_1 t1 left join table_300_latin1_latin1_bin_undef_2 t2 on t1.  = t2.  and t1.  < 9143449222791010176 where t1.  != -322  order by t1.pk, t2.pk;
count(*)
24424

but got(340):
SELECT /*+ inl_merge_join(t2) */ count(*) from table_400_ascii_ascii_bin_undef_1 t1 left join table_300_latin1_latin1_bin_undef_2 t2 on t1.  = t2.  and t1.  < 9143449222791010176 where t1.  != -322  order by t1.pk, t2.pk;
count(*)
31756

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

https://internal.pingcap.net/idc-jenkins/blue/organizations/jenkins/tidb_ghpr_integration_common_test/detail/tidb_ghpr_integration_common_test/24079/pipeline

the newest master with #20935 (comment)

@ti-srebot
Copy link
Contributor

Please edit this comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA) (optional)

2. Symptom (optional)

3. All Trigger Conditions (optional)

4. Workaround (optional)

5. Affected versions

6. Fixed versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants