Skip to content

Conversation

taniabogatsch
Copy link
Contributor

For very large ART keys (+1M bytes), the ART merge code can hit a stack overflow, due to its recursive algorithm.

This PR adds an InvalidInputException on large ART keys. It is a temporary solution until we've replaced any recursion in the ART algorithms with an iterative equivalent.

Fixes https://github.com/duckdblabs/duckdb-internal/issues/4372.

@taniabogatsch taniabogatsch marked this pull request as ready for review March 10, 2025 16:28
Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Looks good - some comments:

@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 11, 2025 10:04
@taniabogatsch taniabogatsch marked this pull request as ready for review March 11, 2025 10:32
@duckdb-draftbot duckdb-draftbot marked this pull request as draft March 11, 2025 14:33
@taniabogatsch taniabogatsch marked this pull request as ready for review March 11, 2025 14:57
@Mytherin Mytherin merged commit ce38435 into duckdb:v1.2-histrionicus Mar 12, 2025
50 checks passed
@Mytherin
Copy link
Collaborator

Thanks!

@taniabogatsch taniabogatsch deleted the art-stack branch March 12, 2025 13:16
krlmlr added a commit to duckdb/duckdb-r that referenced this pull request Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants