From 0d22e141fa446e4c484121caae1d13d7078eaf76 Mon Sep 17 00:00:00 2001 From: Noritaka Sekiyama Date: Thu, 12 Dec 2024 16:53:48 +0900 Subject: [PATCH] Upgrade default Glue version to 5.0 (#481) --- CHANGELOG.md | 1 + dbt/adapters/glue/credentials.py | 2 +- tests/unit/test_credentials.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6679df9..5c5f942 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - Adds a helper function to retrieve the Iceberg catalog namespace from the profile.yaml file. - Adds merge_exclude_columns and incremental_predicates features. - Drop Python 3.8 support +- Upgrade default Glue version to 5.0 ## v1.8.6 - Fix session provisioning timeout and delay handling diff --git a/dbt/adapters/glue/credentials.py b/dbt/adapters/glue/credentials.py index 0861832..ed0e060 100644 --- a/dbt/adapters/glue/credentials.py +++ b/dbt/adapters/glue/credentials.py @@ -15,7 +15,7 @@ class GlueCredentials(Credentials): extra_jars: Optional[str] = None idle_timeout: int = 10 query_timeout_in_minutes: int = 300 - glue_version: Optional[str] = "4.0" + glue_version: Optional[str] = "5.0" security_configuration: Optional[str] = None connections: Optional[str] = None conf: Optional[str] = None diff --git a/tests/unit/test_credentials.py b/tests/unit/test_credentials.py index 3d3d293..d64da7f 100644 --- a/tests/unit/test_credentials.py +++ b/tests/unit/test_credentials.py @@ -15,5 +15,5 @@ def test_credentials(self) -> None: ) assert credentials.schema == "tests" assert credentials.database is None - assert credentials.glue_version == "4.0" # default Glue version is 4.0 + assert credentials.glue_version == "5.0" # default Glue version is 5.0 assert credentials.custom_iceberg_catalog_namespace == "glue_catalog"