You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Register SQL planners in SessionState::new() #11216
It might make sense to move the registering of these planners into the constructor of SessionState rather than here (so users could potentially more carefully control the planner content). But we can do that as a follow on PR
If yes, why is required ? I this that we are already updating the capacity with reference count. If i misinterpreted it can you please elaborate more ?
Activity
dharanad commentedon Jul 2, 2024
hello @jayzhan211 , i would like to work on this. QQ: Is this issue any straight as it sounds or there is more to it?
jayzhan211 commentedon Jul 2, 2024
A little more than it. Ideally we need to update map capacity in provider with the number of references. But, I think you can try it.
datafusion/datafusion/core/src/execution/session_state.rs
Lines 590 to 608 in 75b9c9b
dharanad commentedon Jul 2, 2024
take
dharanad commentedon Jul 3, 2024
Do you mean something like this
If yes, why is required ? I this that we are already updating the capacity with reference count. If i misinterpreted it can you please elaborate more ?
alamb commentedon Jul 5, 2024
Update here is I think the current formulation is about as optimal as we can get it:
datafusion/datafusion/core/src/execution/session_state.rs
Lines 234 to 242 in dce77db
(namely to make a Vec with a size known at compile time