Skip to content

Commit 3fe1860

Browse files
authored
Add null test (#11760)
1 parent a4ac082 commit 3fe1860

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

datafusion/sqllogictest/test_files/aggregate.slt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,12 @@ SELECT APPROX_PERCENTILE_CONT(v, 0.5) FROM (VALUES (1), (2), (3), (NULL), (NULL)
12431243
----
12441244
2
12451245

1246+
# percentile_cont_with_nulls_only
1247+
query I
1248+
SELECT APPROX_PERCENTILE_CONT(v, 0.5) FROM (VALUES (CAST(NULL as INT))) as t (v);
1249+
----
1250+
NULL
1251+
12461252
# csv_query_cube_avg
12471253
query TIR
12481254
SELECT c1, c2, AVG(c3) FROM aggregate_test_100 GROUP BY CUBE (c1, c2) ORDER BY c1, c2

0 commit comments

Comments
 (0)