Skip to content

Commit 6daeae1

Browse files
authored
Make VirtualExecutionPlan public (#138)
1 parent 69deb2b commit 6daeae1

File tree

1 file changed

+13
-1
lines changed
  • datafusion-federation/src/sql

1 file changed

+13
-1
lines changed

datafusion-federation/src/sql/mod.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl FederationPlanner for SQLFederationPlanner {
154154
}
155155

156156
#[derive(Debug, Clone)]
157-
struct VirtualExecutionPlan {
157+
pub struct VirtualExecutionPlan {
158158
plan: LogicalPlan,
159159
executor: Arc<dyn SQLExecutor>,
160160
props: PlanProperties,
@@ -178,6 +178,18 @@ impl VirtualExecutionPlan {
178178
}
179179
}
180180

181+
pub fn plan(&self) -> &LogicalPlan {
182+
&self.plan
183+
}
184+
185+
pub fn executor(&self) -> &Arc<dyn SQLExecutor> {
186+
&self.executor
187+
}
188+
189+
pub fn statistics(&self) -> &Statistics {
190+
&self.statistics
191+
}
192+
181193
fn schema(&self) -> SchemaRef {
182194
let df_schema = self.plan.schema().as_ref();
183195
Arc::new(Schema::from(df_schema))

0 commit comments

Comments
 (0)