From 5715e868baa5320215be851ccf4e85627f95c65a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Mon, 2 Mar 2026 13:22:45 +0100 Subject: [PATCH 1/3] fix(delta-loading): Convert to integer before logging --- R/delta-loading.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/delta-loading.R b/R/delta-loading.R index f12fdf93..53d6fc92 100644 --- a/R/delta-loading.R +++ b/R/delta-loading.R @@ -371,8 +371,8 @@ delta_load <- function( function(ts, n_insertions, n_deactivations) { logger$set_timestamp(ts) logger$log_to_db( - n_insertions = !!ifelse(is.na(n_insertions), 0, n_insertions), - n_deactivations = !!ifelse(is.na(n_deactivations), 0, n_deactivations), + n_insertions = !!ifelse(is.na(n_insertions), 0L, as.integer(n_insertions)), + n_deactivations = !!ifelse(is.na(n_deactivations), 0L, as.integer(n_deactivations)), message = !!glue::glue( "Update via delta load (", "timestamp_from = {attr(delta, \"timestamp_from\")}", From 9b652c6cc56023ccd84cfac04cb51ebc6221c137 Mon Sep 17 00:00:00 2001 From: RasmusSkytte Date: Mon, 2 Mar 2026 12:28:02 +0000 Subject: [PATCH 2/3] chore: Update pak.lock --- pak.lock | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/pak.lock b/pak.lock index e88726c8..bfc934a5 100644 --- a/pak.lock +++ b/pak.lock @@ -16,7 +16,7 @@ }, { "package": "base64enc", - "version": "0.1-3", + "version": "0.1-6", "binary": true }, { @@ -46,7 +46,7 @@ }, { "package": "broom", - "version": "1.0.11", + "version": "1.0.12", "binary": true }, { @@ -71,7 +71,7 @@ }, { "package": "checkmate", - "version": "2.3.3", + "version": "2.3.4", "binary": true }, { @@ -116,17 +116,17 @@ }, { "package": "data.table", - "version": "1.18.0", + "version": "1.18.2.1", "binary": true }, { "package": "DBI", - "version": "1.2.3", + "version": "1.3.0", "binary": true }, { "package": "dbplyr", - "version": "2.5.1", + "version": "2.5.2", "binary": true }, { @@ -156,17 +156,17 @@ }, { "package": "dplyr", - "version": "1.1.4", + "version": "1.2.0", "binary": true }, { "package": "dtplyr", - "version": "1.3.2", + "version": "1.3.3", "binary": true }, { "package": "duckdb", - "version": "1.4.3", + "version": "1.4.4", "binary": true }, { @@ -211,7 +211,7 @@ }, { "package": "gargle", - "version": "1.6.0", + "version": "1.6.1", "binary": true }, { @@ -226,7 +226,7 @@ }, { "package": "ggplot2", - "version": "4.0.1", + "version": "4.0.2", "binary": true }, { @@ -296,7 +296,7 @@ }, { "package": "httr", - "version": "1.4.7", + "version": "1.4.8", "binary": true }, { @@ -346,7 +346,7 @@ }, { "package": "later", - "version": "1.4.5", + "version": "1.4.7", "binary": true }, { @@ -366,7 +366,7 @@ }, { "package": "lubridate", - "version": "1.9.4", + "version": "1.9.5", "binary": true }, { @@ -406,7 +406,7 @@ }, { "package": "openssl", - "version": "2.3.4", + "version": "2.3.5", "binary": true }, { @@ -446,7 +446,7 @@ }, { "package": "pkgload", - "version": "1.4.1", + "version": "1.5.0", "binary": true }, { @@ -516,7 +516,7 @@ }, { "package": "readr", - "version": "2.1.6", + "version": "2.2.0", "binary": true }, { @@ -566,7 +566,7 @@ }, { "package": "RPostgres", - "version": "1.4.8", + "version": "1.4.10", "binary": true }, { @@ -576,7 +576,7 @@ }, { "package": "RSQLite", - "version": "2.4.5", + "version": "2.4.6", "binary": true }, { @@ -626,7 +626,7 @@ }, { "package": "shiny", - "version": "1.12.1", + "version": "1.13.0", "binary": true }, { @@ -691,7 +691,7 @@ }, { "package": "timechange", - "version": "0.3.0", + "version": "0.4.0", "binary": true }, { @@ -731,12 +731,12 @@ }, { "package": "viridisLite", - "version": "0.4.2", + "version": "0.4.3", "binary": true }, { "package": "vroom", - "version": "1.6.7", + "version": "1.7.0", "binary": true }, { @@ -776,7 +776,7 @@ }, { "package": "xtable", - "version": "1.8-4", + "version": "1.8-8", "binary": true }, { From 093be9ded1381ce145ffa7bce150512acc2d19d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rasmus=20Skytte=20Randl=C3=B8v?= Date: Tue, 3 Mar 2026 08:59:03 +0100 Subject: [PATCH 3/3] docs(NEWS): Add entry for `delta_load` log fix --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index 7da12aa3..be53d5fb 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,7 @@ * `delta_export` and `delta_load` now accepts `db_table_id` of class `Id` without error. +* `delta_load` now always writes integer `n_insertions` and `n_deactivations` to the logs table (#221). # SCDB 0.6.0