-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Actually, it's not a functionality bug. It's my confusion about the unit test: logical_plan::builder::tests::plan_using_join_wildcard_projection
The following is some code in the test.
let plan = LogicalPlanBuilder::scan_empty(Some("t1"), &employee_schema(), None)?
.join_using(&t2, JoinType::Inner, vec!["id"])?
.project(vec![Expr::Wildcard])? // my question about here
.build()?;
I find some error descriptions in other place of sql planner like:
Expr::Wildcard { .. } => Err(DataFusionError::Internal(
"Wildcard expressions are not valid in a logical query plan".to_owned(),
))
And in the sql planner, we always expand the wildcard before generating a logical plan.
So the unit test may be wrong, please correct me if I am wrong.
We should do some pre-check for building LogicalPlan to expose errors earlier.
For example, SELECT id, first_name, last_name FROM person WHERE NOT id
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working