@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yarkivaev/scada",
3
- "version": "2.3.71",
3
+ "version": "2.3.72",
4
4
  "description": "SCADA domain objects, state persistence, and plant monitoring",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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, CAST(NULL AS Nullable(Float64))) OVER (ORDER BY ts) AS prev
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, CAST(NULL AS Nullable(Float64))) OVER (ORDER BY ts) AS prev
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