File tree Expand file tree Collapse file tree
datafusion/optimizer/src/analyzer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,9 +48,10 @@ impl AnalyzerRule for InlineTableScan {
4848
4949fn analyze_internal ( plan : LogicalPlan ) -> Result < Transformed < LogicalPlan > > {
5050 // rewrite any subqueries in the plan first
51- let result = plan. map_subqueries ( |plan| plan. transform_up ( & analyze_internal) ) ?;
51+ let transformed_plan =
52+ plan. map_subqueries ( |plan| plan. transform_up ( & analyze_internal) ) ?;
5253
53- let result = result . transform_data ( |plan| {
54+ let transformed_plan = transformed_plan . transform_data ( |plan| {
5455 match plan {
5556 // Match only on scans without filter / projection / fetch
5657 // Views and DataFrames won't have those added
@@ -77,7 +78,7 @@ fn analyze_internal(plan: LogicalPlan) -> Result<Transformed<LogicalPlan>> {
7778 }
7879 } ) ?;
7980
80- Ok ( result )
81+ Ok ( transformed_plan )
8182}
8283
8384fn generate_projection_expr (
You can’t perform that action at this time.
0 commit comments