Skip to content

Commit 64525b8

Browse files
committed
doc session trait
1 parent aca5f27 commit 64525b8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

datafusion/catalog/src/session.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ use std::any::Any;
2828
use std::collections::HashMap;
2929
use std::sync::Arc;
3030

31+
/// Execution context which access to the session state kept by DataFusion.
32+
///
33+
/// Note that this trait is implemented by the DataFusion core, and you typically
34+
/// do not need to implement it. When this trait is backed by the core's
35+
/// `SessionState` you can unwrap it using a `downcast_ref`
36+
/// (`.as_any().downcast_ref::<SessionState>().unwrap()`). This functionality
37+
/// is provided to facilitate transition period, avoid depending on it.
3138
#[async_trait]
3239
pub trait CatalogSession: Send + Sync {
3340
/// Return the session ID

0 commit comments

Comments
 (0)