Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions rust/datafusion/src/execution/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ impl ExecutionContext {
ctx
}

/// Create a context from existing context state
pub(crate) fn from(state: ExecutionContextState) -> Self {
Self { state }
}

/// Get the configuration of this execution context
pub fn config(&self) -> &ExecutionConfig {
&self.state.config
Expand Down Expand Up @@ -379,6 +374,12 @@ impl ExecutionContext {
}
}

impl From<ExecutionContextState> for ExecutionContext {
fn from(state: ExecutionContextState) -> Self {
ExecutionContext { state }
}
}

/// A planner used to add extensions to DataFusion logical and phusical plans.
pub trait QueryPlanner {
/// Given a `LogicalPlan`, create a new, modified `LogicalPlan`
Expand Down