Skip to content

Commit c3eb9ef

Browse files
authored
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.
1 parent a41f908 commit c3eb9ef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

datafusion/core/src/execution/session_state.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -969,6 +969,7 @@ impl SessionState {
969969
/// be used for all values unless explicitly provided.
970970
///
971971
/// See example on [`SessionState`]
972+
#[derive(Clone)]
972973
pub struct SessionStateBuilder {
973974
session_id: Option<String>,
974975
analyzer: Option<Analyzer>,

0 commit comments

Comments
 (0)