Skip to content

Commit

Permalink
wip: fixes after rebase but tpcds_physical_q54 keeps overflowing its …
Browse files Browse the repository at this point in the history
…stack
  • Loading branch information
matthewgapp committed Jan 9, 2024
1 parent e5611b4 commit e0724dd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion datafusion/core/src/physical_planner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ impl DefaultPhysicalPlanner {
let filter = FilterExec::try_new(runtime_expr, physical_input)?;
Ok(Arc::new(filter.with_default_selectivity(selectivity)?))
}
LogicalPlan::Union(Union { inputs, schema }) => {
LogicalPlan::Union(Union { inputs, schema: _ }) => {
let physical_plans = self.create_initial_plan_multi(inputs.iter().map(|lp| lp.as_ref()), session_state, ctx).await?;

Ok(Arc::new(UnionExec::new(physical_plans)))
Expand Down
2 changes: 2 additions & 0 deletions datafusion/optimizer/src/optimize_projections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ fn optimize_projections(
.collect::<Vec<_>>()
}
LogicalPlan::EmptyRelation(_)
| LogicalPlan::NamedRelation(_)
| LogicalPlan::RecursiveQuery(_)
| LogicalPlan::Statement(_)
| LogicalPlan::Values(_)
| LogicalPlan::Extension(_)
Expand Down
1 change: 1 addition & 0 deletions datafusion/physical-plan/src/recursive_query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ impl RecursiveQueryStream {
Err(e) => {
return Poll::Ready(Some(Err(DataFusionError::ArrowError(
ArrowError::from_external_error(Box::new(e)),
None,
))));
}
}
Expand Down
10 changes: 5 additions & 5 deletions datafusion/sql/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ use datafusion_common::{
plan_err, sql_err, Constraints, DFSchema, DataFusionError, Result, ScalarValue,
};
use datafusion_expr::{
logical_plan, CreateMemoryTable, DdlStatement, Distinct, Expr, LogicalPlan,
LogicalPlanBuilder,
CreateMemoryTable, DdlStatement, Distinct, Expr, LogicalPlan, LogicalPlanBuilder,
};
use sqlparser::ast::{
Expr as SQLExpr, Offset as SQLOffset, OrderByExpr, Query, SetExpr, SetOperator,
Expand Down Expand Up @@ -172,9 +171,10 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
planner_context.insert_cte(cte_name.clone(), final_plan);
}
_ => {
return Err(DataFusionError::SQL(ParserError(
"Invalid recursive CTE".to_string(),
)));
return Err(DataFusionError::SQL(
ParserError("Invalid recursive CTE".to_string()),
None,
));
}
};
} else {
Expand Down

0 comments on commit e0724dd

Please sign in to comment.