We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69deb2b commit 6daeae1Copy full SHA for 6daeae1
1 file changed
datafusion-federation/src/sql/mod.rs
@@ -154,7 +154,7 @@ impl FederationPlanner for SQLFederationPlanner {
154
}
155
156
#[derive(Debug, Clone)]
157
-struct VirtualExecutionPlan {
+pub struct VirtualExecutionPlan {
158
plan: LogicalPlan,
159
executor: Arc<dyn SQLExecutor>,
160
props: PlanProperties,
@@ -178,6 +178,18 @@ impl VirtualExecutionPlan {
178
179
180
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
193
fn schema(&self) -> SchemaRef {
194
let df_schema = self.plan.schema().as_ref();
195
Arc::new(Schema::from(df_schema))
0 commit comments