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

memory_quota hint should be extracted for Union #50626

Closed
jackysp opened this issue Jan 22, 2024 · 1 comment
Closed

memory_quota hint should be extracted for Union #50626

jackysp opened this issue Jan 22, 2024 · 1 comment
Assignees
Labels
affects-6.5 affects-7.1 affects-7.5 found/gs found by gs sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@jackysp
Copy link
Member

jackysp commented Jan 22, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. create a table like sysbench tables, insert 1M rows.
select /*+ memory_quota(1 MB) */ id from sbtest1 where k > 1 union all select id from sbtest1 where k > 0;

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

Memory quota exceeded.

3. What did you see instead (Required)

No error.
The following SQL works

select /*+ memory_quota(1 MB) */ * from (select /*+ memory_quota(1 MB) */ id from sbtest1 where k > 1 union all select id from sbtest2 where k > 0)

4. What is your TiDB version? (Required)

From v6.5 to v7.5

@jackysp jackysp added type/bug The issue is confirmed as a bug. sig/planner SIG: Planner found/gs found by gs labels Jan 22, 2024
@hawkingrei hawkingrei self-assigned this Jan 22, 2024
@hawkingrei
Copy link
Member

I think it has been fix by #50068 and #50067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 affects-7.1 affects-7.5 found/gs found by gs sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

3 participants