blob: 7212121602dfe84480ec814e2eb601fe7013b15a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
PRAGMA WindowNewPipeline;
/* custom error: Error while processing RANGE bound */
/* custom error: NaN is not allowed for RANGE frame bounds */
$data = [
<|a: Float("1.0"), count: 1|>,
<|a: Float("2.0"), count: 1|>,
<|a: Float("3.0"), count: 1|>,
];
SELECT
COUNT(*) OVER w1 AS actual_count,
count,
FROM
AS_TABLE($data)
WINDOW
w1 AS (
ORDER BY
a ASC
RANGE BETWEEN Float("nan") PRECEDING AND Float("nan") FOLLOWING
)
|