blob: de9d0d7458caa1e7ea9532611fdc0409f0beba01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
PRAGMA WindowNewPipeline;
/* custom error: Error while processing RANGE bound for column type: Decimal(3,1) and offset type: Decimal(3,1) */
/* custom error: Inf is not allowed for RANGE frame bounds */
$data = [
<|a: Decimal('8', 3, 1), b: 1|>,
];
$win_result = (
SELECT
SUM(a) OVER w1 AS actual_sum1,
FROM
AS_TABLE($data)
WINDOW
w1 AS (
PARTITION COMPACT BY
b
ORDER BY
a ASC
RANGE BETWEEN Decimal('inf', 3, 1) PRECEDING AND CURRENT ROW
)
);
select * from $win_result;
|