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

[Bug] select full table without group by and order by,query use large memory,be memory exceed limit #30087

Open
2 of 3 tasks
lipenghao1216 opened this issue Jan 18, 2024 · 1 comment

Comments

@lipenghao1216
Copy link

lipenghao1216 commented Jan 18, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.0.2

What's Wrong?

i have a unique model table, 600w rows,when i use select * from table limit 7000000, query failed caused by memory exceed limit; use mem_tracker can see query use large memory
image
my be server still have 3g available memory
i think a sql without group by order by .. just scan full table data should not use too many memory, because be need not to load all data into memory from disk ,then send to client

my table ddl and query profile
profile_1705491397004.txt
ddl.txt

What You Expected?

select * from table can execute successfully without using large memory

How to Reproduce?

be without rich available memory, like 3g
table uncompressed data size exceed 3g
select * from table

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@lipenghao1216
Copy link
Author

image

@lipenghao1216 lipenghao1216 changed the title select full table without group by and order by,query use large memory,be memory exceed limit[Bug] [Bug] select full table without group by and order by,query use large memory,be memory exceed limit Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant