-
Notifications
You must be signed in to change notification settings - Fork 139
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
Lots of UNION ALL causes "memory access out of bounds" #1954
Comments
If this were to be a machine generated query, making the tree more unbalanced might help, example:
This might work around the problem, and we will eventually do the transformation duckdb/duckdb side automatically (native side has similar problems, but given stack limits are different it's harder to bump against those. I need to look how to address to avoid the crash in any case. |
Thank you for the suggestion! |
What happens?
When running a query with enough unions, the error "memory access out of bounds" is thrown. Once this error is thrown, all further queries fail to execute with the same error.
To Reproduce
Run this query, with 86 unions (85 or fewer seem to work fine). This is reproducible on shell.duckdb.org, but not in native DuckDB.
Browser/Environment:
Chrome 132.0.6834.160 (arm64)
Device:
Mac Mini, M4 Pro, Sequoia 15.2
DuckDB-Wasm Version:
1.29.1-dev3.0
DuckDB-Wasm Deployment:
https://count.co or https://shell.duckdb.org/
Full Name:
Jason Cole
Affiliation:
Count
The text was updated successfully, but these errors were encountered: