16 lines
703 B
SQL
16 lines
703 B
SQL
# name: test/fuzzer/sqlsmith/window-leadlag-overflow.test
|
|
# description: Lead/Lag Arithmetic Overflow
|
|
# group: [sqlsmith]
|
|
|
|
statement error
|
|
WITH all_types AS (
|
|
select * exclude(small_enum, medium_enum, large_enum) from test_all_types()
|
|
)
|
|
SELECT lag(c16, COLUMNS(*)) OVER (ROWS BETWEEN 1768 FOLLOWING AND UNBOUNDED FOLLOWING)
|
|
FROM all_types AS t42(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)
|
|
----
|
|
the value is out of range for the destination type
|
|
|
|
statement ok
|
|
SELECT lead('1e668c84-6cbc-4d41-843e-970c17446f9e', 8479, 3087) OVER (PARTITION BY 9136)
|