From eeb2f78afda9b43e3a897c47b84e53cad7ac55a8 Mon Sep 17 00:00:00 2001 From: Bilal Tonga Date: Mon, 22 Jun 2026 09:50:22 +0200 Subject: [PATCH 1/4] Upgrade sqlalchemy-cratedb dependency to v0.43.0 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 00dfbb1c..b62605ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,7 +104,7 @@ dependencies = [ "python-slugify<9", "pyyaml<7", "requests>=2.28,<3", - "sqlalchemy-cratedb>=0.41.0", + "sqlalchemy-cratedb>=0.43.0", "sqlparse<0.6", "tqdm<5", "vasuki<0.8", From 04f609b03721adad96404da699915171835798a6 Mon Sep 17 00:00:00 2001 From: Bilal Tonga Date: Mon, 22 Jun 2026 09:50:37 +0200 Subject: [PATCH 2/4] Fix parameter passing in insert operation to use zipped keys --- cratedb_toolkit/adapter/pymongo/collection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cratedb_toolkit/adapter/pymongo/collection.py b/cratedb_toolkit/adapter/pymongo/collection.py index f2b5cd66..f03439a6 100644 --- a/cratedb_toolkit/adapter/pymongo/collection.py +++ b/cratedb_toolkit/adapter/pymongo/collection.py @@ -84,7 +84,7 @@ def insert_returning_id(pd_table, conn, keys, data_iter): # Invoke amended insert operation, returning the record # identifier as surrogate to MongoDB's `ObjectId`. cursor = conn._dbapi_connection.cursor() - cursor.execute(sql=sql + " RETURNING _id", parameters=data[0]) + cursor.execute(sql=sql + " RETURNING _id", parameters=dict(zip(keys, data[0]))) outcome = cursor.fetchone() object_id_cratedb = outcome[0] cursor.close() From 98397e4321f56fa49e369994582a1901a487d7bc Mon Sep 17 00:00:00 2001 From: Bilal Tonga Date: Mon, 22 Jun 2026 16:26:12 +0200 Subject: [PATCH 3/4] Update minimum sqlalchemy-cratedb version to 0.43.1 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b62605ec..64e3afd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -104,7 +104,7 @@ dependencies = [ "python-slugify<9", "pyyaml<7", "requests>=2.28,<3", - "sqlalchemy-cratedb>=0.43.0", + "sqlalchemy-cratedb>=0.43.1", "sqlparse<0.6", "tqdm<5", "vasuki<0.8", From 971433e2f7f30fbb430135dbfb77c8282df43b84 Mon Sep 17 00:00:00 2001 From: Bilal Tonga Date: Tue, 23 Jun 2026 13:39:40 +0200 Subject: [PATCH 4/4] Update changelog with sqlalchemy-crate version upgrade --- CHANGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.md b/CHANGES.md index f1a0805a..9a5e4518 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ - Breaking change: Dropped support for Python 3.8 and 3.9, which have reached end-of-life. The minimum supported Python version is now 3.10. - Fixed a failing SQL statement during `ctk info cluster` +- Dependency: Update sqlalchemy-crate version to 0.43.1 ## 2026/06/17 v0.0.49 - Stopped leaking password to log output in `ctk cfr jobstats collect`.