@yarkivaev/scada 2.3.71 → 2.3.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -37,7 +37,7 @@ const CHANGES_SQL = `WITH prior AS (
|
|
|
37
37
|
ts,
|
|
38
38
|
value,
|
|
39
39
|
row_number() OVER (ORDER BY ts) AS n,
|
|
40
|
-
lagInFrame(value, 1
|
|
40
|
+
lagInFrame(toNullable(value), 1) OVER (ORDER BY ts) AS prev
|
|
41
41
|
FROM series
|
|
42
42
|
)
|
|
43
43
|
SELECT if(ts < {start:DateTime64(3)}, {start:DateTime64(3)}, ts) AS ts, value
|
|
@@ -34,7 +34,7 @@ const RISES_SQL = `WITH prior AS (
|
|
|
34
34
|
SELECT
|
|
35
35
|
ts,
|
|
36
36
|
value,
|
|
37
|
-
lagInFrame(value, 1
|
|
37
|
+
lagInFrame(toNullable(value), 1) OVER (ORDER BY ts) AS prev
|
|
38
38
|
FROM series
|
|
39
39
|
)
|
|
40
40
|
SELECT ts, sum(1) OVER (ORDER BY ts) AS value
|