Skip to content

Parser: Add a stack check to parse_joins - #3078

Open
LucaCappelletti94 wants to merge 2 commits into
mainfrom
upstream/parse-query-stack-gap
Open

LucaCappelletti94 wants to merge 2 commits into
mainfrom
upstream/parse-query-stack-gap

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

In debug builds the frames between the stack checks in parse_query and parse_table_factor exceed the 128 KiB red zone, mostly because of parse_joins (about 58 KiB), so nested derived tables within the recursion limit can overflow the stack. This adds the same check to parse_joins.

@LucaCappelletti94 LucaCappelletti94 added the bug Something isn't working label Nov 30, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.65%. Comparing base (540e398) to head (03bdc0b).

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #3078    +/-   ##
========================================
  Coverage   83.64%   83.65%            
========================================
  Files          42       42            
  Lines       35833    35709   -124     
  Branches    35833    35709   -124     
========================================
- Hits        29974    29872   -102     
+ Misses       2418     2414     -4     
+ Partials     3441     3423    -18     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

Successfully merging this pull request may close these issues.

2 participants