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

17 lines
476 B
SQL

# name: test/fuzzer/pedro/window_self_reference.test
# description: Window clause self-reference
# group: [pedro]
statement ok
PRAGMA enable_verification
statement error
SELECT count(*) OVER w1 WINDOW w1 AS (ORDER BY count(*) OVER w1);
----
window functions are not allowed in window definitions
statement error
SELECT count(*) OVER w1 WINDOW w1 AS (ORDER BY count(*) OVER w2), w2 AS (ORDER BY count(*) OVER w1);
----
window functions are not allowed in window definitions