Files
email-tracker/external/duckdb/test/fuzzer/duckfuzz/window_negate_stats.test
2025-10-24 19:21:19 -05:00

16 lines
651 B
SQL

# name: test/fuzzer/duckfuzz/window_negate_stats.test
# description: Negate extreme window statistics.
# group: [duckfuzz]
statement ok
create table all_types as select * exclude(small_enum, medium_enum, large_enum) from test_all_types();
query I
SELECT max(c33) FILTER (WHERE c25) OVER (PARTITION BY c22 ROWS BETWEEN c5 PRECEDING AND CURRENT ROW)
FROM all_types AS t43(c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c37, c38, c39, c40, c41, c42, c43)
ORDER BY ALL NULLS LAST
----
[]
[42.0, nan, inf, -inf, NULL, -42.0]
NULL