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

index_lookup_join return empty result if it is Out Of Memory Quota #30211

Closed
ChenPeng2013 opened this issue Nov 29, 2021 · 2 comments · Fixed by #30214
Closed

index_lookup_join return empty result if it is Out Of Memory Quota #30211

ChenPeng2013 opened this issue Nov 29, 2021 · 2 comments · Fixed by #30214
Assignees
Labels
affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@ChenPeng2013
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

oom-action = "cancel"

use test;
drop table if exists t1, t2;
create table t1(a int, index(a));
create table t2(a int, index(a));
insert into t1 values(1),(2);
insert into t2 values(1),(1),(2),(2);
set @@tidb_mem_quota_query=8000;
set tidb_index_join_batch_size = 1;
select /*+ inl_join(t1) */ * from t1 join t2 on t1.a = t2.a;

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

mysql> select /*+ inl_join(t1) */ * from t1 join t2 on t1.a = t2.a;
+------+------+
| a    | a    |
+------+------+
|    1 |    1 |
|    1 |    1 |
|    2 |    2 |
|    2 |    2 |
+------+------+
4 rows in set (0.00 sec)

3. What did you see instead (Required)

mysql> select /*+ inl_join(t1) */ * from t1 join t2 on t1.a = t2.a;
Empty set (0.00 sec)

4. What is your TiDB version? (Required)

Release Version: v5.4.0-alpha-245-g6d7a32064
Edition: Community
Git Commit Hash: 6d7a32064159ab6924ef0d0d095933e80293b478
Git Branch: master
UTC Build Time: 2021-11-29 03:11:31
GoVersion: go1.16.5
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false
@ChenPeng2013 ChenPeng2013 added type/bug The issue is confirmed as a bug. severity/critical sig/execution SIG execution labels Nov 29, 2021
@XuHuaiyu
Copy link
Contributor

Caused by the mistaken delete

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. affects-5.3 This bug affects 5.3.x versions. 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.

3 participants