This is an automated email from the ASF dual-hosted git repository.

blaginin pushed a commit to branch annarose/dict-coercion
in repository https://gitbox.apache.org/repos/asf/datafusion-sandbox.git

commit c3eb9ef05fbfe821baca91f6779282de3c9f54f5
Author: Albert Skalt <[email protected]>
AuthorDate: Wed Feb 4 00:23:42 2026 +0300

    Make session state builder clonable (#20136)
    
    ## Rationale for this change
    
    We have the next flow in our DF based project: create a base
    `SessionStateBuilder` and then, when a new user session is created, it
    is used to build a session state. As `build(...)` consumes `self`, it
    would be good to have `Clone` on `SesssionStateBuilder`, what this patch
    adds.
---
 datafusion/core/src/execution/session_state.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/datafusion/core/src/execution/session_state.rs 
b/datafusion/core/src/execution/session_state.rs
index 9cee04ad3..9560616c1 100644
--- a/datafusion/core/src/execution/session_state.rs
+++ b/datafusion/core/src/execution/session_state.rs
@@ -969,6 +969,7 @@ impl SessionState {
 /// be used for all values unless explicitly provided.
 ///
 /// See example on [`SessionState`]
+#[derive(Clone)]
 pub struct SessionStateBuilder {
     session_id: Option<String>,
     analyzer: Option<Analyzer>,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to