Dandandan commented on code in PR #27630:
URL: https://github.com/apache/datafusion/pull/27630#discussion_r4652556906


##########
datafusion/sqllogictest/test_files/explain.slt:
##########
@@ -338,6 +338,21 @@ physical_plan
 04)------DataSourceExec: partitions=1, partition_sizes=[1], 
statistics=[Rows=Exact(1), Bytes=Exact(112), [(Col[0]: Null=Exact(0))]]
 05)------DataSourceExec: partitions=1, partition_sizes=[1], 
statistics=[Rows=Exact(5), Bytes=Exact(192), [(Col[0]: Null=Exact(2))]]
 
+# An inner join with an input known to be empty is exactly empty
+statement ok
+CREATE TABLE empty_join_input(a INT) AS SELECT * FROM null_check_join WHERE 
false;
+
+query TT
+EXPLAIN SELECT * FROM null_check_statistics t JOIN empty_join_input e ON t.a = 
e.a;
+----
+physical_plan

Review Comment:
   It doesnt replace it with `EmptyExec`?



-- 
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]

Reply via email to