Skip to content

Commit

Permalink
Add test to verify count aggregate function should not be nullable (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
HuSen8891 authored Aug 21, 2024
1 parent eca71c4 commit ad583a8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions datafusion/sqllogictest/test_files/aggregate.slt
Original file line number Diff line number Diff line change
Expand Up @@ -5387,6 +5387,18 @@ physical_plan
statement ok
DROP 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 ok
CREATE TABLE t(col0 INTEGER) as VALUES(2);

Expand Down

0 comments on commit ad583a8

Please sign in to comment.