Skip to content

Commit ea788c7

Browse files
authored
Improve error message on unsupported correlation (#14458)
1 parent 932439f commit ea788c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

datafusion/expr/src/logical_plan/invariants.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,10 @@ fn check_inner_plan(inner_plan: &LogicalPlan, can_contain_outer_ref: bool) -> Re
288288
}
289289
},
290290
LogicalPlan::Extension(_) => Ok(()),
291-
_ => plan_err!("Unsupported operator in the subquery plan."),
291+
_ => plan_err!(
292+
"Unsupported operator in the subquery plan: {}",
293+
inner_plan.display()
294+
),
292295
}
293296
}
294297

0 commit comments

Comments
 (0)