diff --git a/datafusion/expr/src/logical_plan/plan.rs b/datafusion/expr/src/logical_plan/plan.rs index d68e6cd81272..01dcc3a74394 100644 --- a/datafusion/expr/src/logical_plan/plan.rs +++ b/datafusion/expr/src/logical_plan/plan.rs @@ -2040,7 +2040,9 @@ impl ToStringifiedPlan for LogicalPlan { } } -/// Produces no rows: An empty relation with an empty schema +/// Relationship produces 0 or 1 placeholder rows with specified output schema +/// In most cases the output schema for `EmptyRelation` would be empty, +/// however, it can be non-empty typically for optimizer rules #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub struct EmptyRelation { /// Whether to produce a placeholder row