We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87a94d5 commit 37a99cfCopy full SHA for 37a99cf
1 file changed
datafusion/expr/src/logical_plan/builder.rs
@@ -1987,7 +1987,7 @@ fn project_with_validation(
1987
}
1988
1989
1990
- if has_wildcard && projected_expr.is_empty() {
+ if has_wildcard && projected_expr.is_empty() && !plan.schema().fields().is_empty() {
1991
return plan_err!(
1992
"SELECT list is empty after resolving * expressions, \
1993
the wildcard expanded to zero columns"
0 commit comments