should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
# name: test/fuzzer/sqlsmith/window_scalar_range.test
# description: Test various RANGE types
# group: [sqlsmith]
# Constant ORDER BY
statement ok
CREATE TABLE partsupp AS SELECT (random() * 100)::INT AS c2
FROM range(8000);
statement ok
SELECT percent_rank()
OVER (ORDER BY 7543 ASC NULLS FIRST
RANGE BETWEEN c2 PRECEDING AND c2 FOLLOWING)
FROM partsupp;
# LIST + ARRAY
statement ok
create table all_types as
select * exclude(small_enum, medium_enum, large_enum)
from test_all_types();
statement error
SELECT NULL
FROM all_types AS t51(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, c44, c45, c46, c47, c48, c49, c50, c51)
QUALIFY row_number() OVER (ORDER BY main.list_value() ASC NULLS FIRST RANGE BETWEEN c44 FOLLOWING AND UNBOUNDED FOLLOWING)
----
Invalid type for Window RANGE expression