Skip to content

Commit e5b76f7

Browse files
authored
chore: Clarify EmptyRelation description (#17157)
* chore: Clarify `EmptyRelation` description
1 parent b786b9a commit e5b76f7

File tree

1 file changed

+3
-1
lines changed
  • datafusion/expr/src/logical_plan

1 file changed

+3
-1
lines changed

datafusion/expr/src/logical_plan/plan.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2040,7 +2040,9 @@ impl ToStringifiedPlan for LogicalPlan {
20402040
}
20412041
}
20422042

2043-
/// Produces no rows: An empty relation with an empty schema
2043+
/// Relationship produces 0 or 1 placeholder rows with specified output schema
2044+
/// In most cases the output schema for `EmptyRelation` would be empty,
2045+
/// however, it can be non-empty typically for optimizer rules
20442046
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
20452047
pub struct EmptyRelation {
20462048
/// Whether to produce a placeholder row

0 commit comments

Comments
 (0)