Skip to content

Commit 93015be

Browse files
committed
minor: add Any to QueryPlanner trait
1 parent 1ab146a commit 93015be

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • datafusion/core/src/execution/context

datafusion/core/src/execution/context/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
//! [`SessionContext`] API for registering data sources and executing queries
1919
20+
use std::any::Any;
2021
use std::collections::HashSet;
2122
use std::fmt::Debug;
2223
use std::sync::{Arc, Weak};
@@ -2073,7 +2074,7 @@ impl From<SessionContext> for SessionStateBuilder {
20732074

20742075
/// A planner used to add extensions to DataFusion logical and physical plans.
20752076
#[async_trait]
2076-
pub trait QueryPlanner: Debug {
2077+
pub trait QueryPlanner: Any + Debug {
20772078
/// Given a [`LogicalPlan`], create an [`ExecutionPlan`] suitable for execution
20782079
async fn create_physical_plan(
20792080
&self,

0 commit comments

Comments
 (0)