Skip to content

Commit

Permalink
Make it able to specify a session id for SessionState (#4933)
Browse files Browse the repository at this point in the history
Co-authored-by: yangzhong <yangzhong@ebay.com>
  • Loading branch information
yahoNanJing and kyotoYaho authored Jan 17, 2023
1 parent 9301133 commit 4e08117
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions datafusion/core/src/execution/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,12 @@ impl SessionState {
})
}

/// Replace the random session id.
pub fn with_session_id(mut self, session_id: String) -> Self {
self.session_id = session_id;
self
}

/// Replace the default query planner
pub fn with_query_planner(
mut self,
Expand Down

0 comments on commit 4e08117

Please sign in to comment.