Skip to content

Commit 37a99cf

Browse files
committed
fix empty csv cases
1 parent 87a94d5 commit 37a99cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datafusion/expr/src/logical_plan/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,7 +1987,7 @@ fn project_with_validation(
19871987
}
19881988
}
19891989
}
1990-
if has_wildcard && projected_expr.is_empty() {
1990+
if has_wildcard && projected_expr.is_empty() && !plan.schema().fields().is_empty() {
19911991
return plan_err!(
19921992
"SELECT list is empty after resolving * expressions, \
19931993
the wildcard expanded to zero columns"

0 commit comments

Comments
 (0)