Open findepi opened 1 hour ago
this is probably incorrect query?
Cannot reproduce:
trino> SELECT rank() OVER (ORDER BY a RANGE BETWEEN UNBOUNDED PRECEDING AND 3 PRECEDING)
-> FROM (VALUES 1, 2) t(a);
Query 20241115_071604_00005_cp885 failed: line 1:32: Cannot specify window frame for rank function
The above error is a correct behavior according to the spec.
a window function over empty frame should probably not return anything useful, but this returns (1), (2) as if window was ignored