Apache DataFusion SQL Query Engine
Add test to verify count aggregate function should not be nullable (#12100)
HuSenad583a8dfa1c
diff --git a/datafusion/sqllogictest/test_files/aggregate.slt b/datafusion/sqllogictest/test_files/aggregate.sltindex b8b93b28af..d39bf6538e 100644--- a/datafusion/sqllogictest/test_files/aggregate.slt+++ b/datafusion/sqllogictest/test_files/aggregate.slt@@ -5387,6 +5387,18 @@ physical_planstatement okDROP TABLE empty;+# verify count aggregate function should not be nullable+statement ok+create table empty;++query I+select distinct count() from empty;+----+0++statement ok+DROP TABLE empty;+statement okCREATE TABLE t(col0 INTEGER) as VALUES(2);