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

Query exceed memory quota can't show ConnID #47979

Closed
wshwsh12 opened this issue Oct 25, 2023 · 0 comments · Fixed by #47980
Closed

Query exceed memory quota can't show ConnID #47979

wshwsh12 opened this issue Oct 25, 2023 · 0 comments · Fixed by #47980
Labels
severity/minor sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@wshwsh12
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tidb> select sum(a) from t group by a;
+--------+
| sum(a) |
+--------+
|   1024 |
+--------+
1 row in set (0.001 sec)

tidb> set @@tidb_mem_quota_query=1;
Query OK, 0 rows affected, 1 warning (0.000 sec)

tidb> select sum(a) from t group by a;
ERROR 8175 (HY000): Your query has been cancelled due to exceeding the allowed memory limit for a single SQL query. Please try narrowing your query scope or increase the tidb_mem_quota_query limit and try again.[conn=0]

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

See ConnID not equal 0.

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master

related pr #47063

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor 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.

1 participant