alamb commented on code in PR #16941:
URL: https://github.com/apache/datafusion/pull/16941#discussion_r2240765144
##########
datafusion/physical-plan/src/empty.rs:
##########
@@ -165,23 +169,28 @@ impl ExecutionPlan for EmptyExec {
);
}
}
+ // Build explicit stats: exact zero rows and bytes, with unknown
columns
+ let mut stats = Statistics::default()
+ .with_num_rows(Precision::Exact(0))
+ .with_total_byte_size(Precision::Exact(0));
+
+ // Add unknown column stats for each field in schema
Review Comment:
Technically speaking we could probably also add known statistics values too
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]