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

A memory-limited sort query fails #14143

Open
2010YOUY01 opened this issue Jan 16, 2025 · 1 comment
Open

A memory-limited sort query fails #14143

2010YOUY01 opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@2010YOUY01
Copy link
Contributor

2010YOUY01 commented Jan 16, 2025

Describe the bug

I discovered this bug when implementing a test module in #14142

Compile and run datafusion-cli

 cargo run -- --mem-pool-type fair -m 80M -c 'select c1, c1 as c2 from generate_series(1,10000000) as t1(c1) order by c2 DESC, c1 ASC NULLS LAST'

The query failed with

Error: Resources exhausted: Failed to allocate additional 131072 bytes for ExternalSorterMerge[0] with 31850496 bytes already allocated for this reservation - 45560 bytes remain available for the total pool

To Reproduce

No response

Expected behavior

No response

Additional context

No response

@2010YOUY01 2010YOUY01 added the bug Something isn't working label Jan 16, 2025
@2010YOUY01
Copy link
Contributor Author

take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant