From 281ce2a8f7994765094b2e2cc9d3da70546d6218 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 14 Oct 2024 15:31:20 +0000 Subject: [PATCH 1/2] Chore(deps): Bump sqlalchemy-cratedb from 0.37.0 to 0.40.0 Bumps [sqlalchemy-cratedb](https://github.com/crate/sqlalchemy-cratedb) from 0.37.0 to 0.40.0. - [Release notes](https://github.com/crate/sqlalchemy-cratedb/releases) - [Changelog](https://github.com/crate/sqlalchemy-cratedb/blob/main/CHANGES.md) - [Commits](https://github.com/crate/sqlalchemy-cratedb/compare/0.37.0...0.40.0) --- updated-dependencies: - dependency-name: sqlalchemy-cratedb dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2ac7678..a7ef340 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,7 +98,7 @@ dependencies = [ "pandas<2", "requests<2.33", "sql-formatter<0.7", - "sqlalchemy-cratedb==0.37.0", + "sqlalchemy-cratedb==0.40.0", "sqlmakeuper<0.2", "urllib3<3", ] From ee574f7679f683fbeeb6c9797ccb528a59e19ace Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Sun, 20 Oct 2024 10:48:21 +0200 Subject: [PATCH 2/2] Adjust SQL DDL for sqlalchemy-cratedb 0.40.0 --- CHANGES.rst | 1 + tests/format/test_netcdf.py | 2 +- tests/util.py | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 3d4d8d2..991556c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -6,6 +6,7 @@ Skeem changelog in progress =========== - Added support for Python 3.12 +- Adjusted SQL DDL for sqlalchemy-cratedb 0.40.0 2023-03-09 0.1.0 diff --git a/tests/format/test_netcdf.py b/tests/format/test_netcdf.py index 3c06459..ce896fb 100644 --- a/tests/format/test_netcdf.py +++ b/tests/format/test_netcdf.py @@ -10,7 +10,7 @@ reference = unwrap( """ CREATE TABLE "aircraft_track_lear" ( - "time" TIMESTAMP NOT NULL, + "time" TIMESTAMP WITHOUT TIME ZONE NOT NULL, "altitude" DOUBLE NOT NULL, "latitude" DOUBLE NOT NULL, "longitude" DOUBLE NOT NULL, diff --git a/tests/util.py b/tests/util.py index e02559c..87d389a 100644 --- a/tests/util.py +++ b/tests/util.py @@ -32,7 +32,7 @@ def get_basic_sql_reference( CREATE TABLE "{clean_key_name(table_name)}" ( "id" INT NOT NULL, "name" STRING NOT NULL, - "date" TIMESTAMP{" NOT NULL" if timestamp_not_null else ""}, + "date" TIMESTAMP WITHOUT TIME ZONE{" NOT NULL" if timestamp_not_null else ""}, "fruits" STRING NOT NULL, "price" DOUBLE NOT NULL, PRIMARY KEY ("{primary_key}") @@ -43,7 +43,8 @@ def get_basic_sql_reference( CREATE TABLE {clean_key_name(table_name)} ( id INT NOT NULL, name STRING, - date {"TIMESTAMP" if not timestamp_is_string else "STRING"}{" NOT NULL" if timestamp_not_null else ""}, + date {"TIMESTAMP WITHOUT TIME ZONE" if not timestamp_is_string else "STRING" + }{" NOT NULL" if timestamp_not_null else ""}, fruits STRING, price FLOAT, PRIMARY KEY ({primary_key})