Skip to content

Conversation

@alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Oct 31, 2025

Closes #17381.
Closes #17056.
Closes #20732.

Turns out we had an issue with possible arena/context mutation when subqueries execute.

Fixed by introducing an execute_isolated function taking a query-executing closure that ensures the subquery gets clean state, and any state updates inside the subquery don't propagate into the original/outer context.

Takes care of several outstanding issues 👍

@github-actions github-actions bot added A-sql Area: Polars SQL functionality fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Oct 31, 2025
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.75%. Comparing base (6bf4153) to head (4179db5).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #25110      +/-   ##
==========================================
+ Coverage   81.03%   81.75%   +0.72%     
==========================================
  Files        1707     1707              
  Lines      235607   235630      +23     
  Branches     3005     3005              
==========================================
+ Hits       190913   192647    +1734     
+ Misses      43926    42215    -1711     
  Partials      768      768              

☔ View full report in Codecov by Sentry.
📢 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.

@alexander-beedie alexander-beedie changed the title fix: Solve issue with arena mutation in SQL subqueries fix: Solve multiple issues relating to arena mutation in SQL subqueries Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-sql Area: Polars SQL functionality fix Bug fix python Related to Python Polars rust Related to Rust Polars

Projects

None yet

1 participant