File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,7 @@ workflows:
306306 - " 3.10"
307307 - " 3.11"
308308 - " 3.12"
309+ - " 3.13"
309310 - cicd_tests_windows
310311 - engine_tests_docker :
311312 name : engine_<< matrix.engine >>
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ dev = [
6565 " dbt-clickhouse" ,
6666 " dbt-databricks" ,
6767 " dbt-redshift" ,
68- " dbt-sqlserver>=1.7.0" ,
68+ " dbt-sqlserver>=1.7.0;python_version<'3.13' " ,
6969 " dbt-trino" ,
7070 " Faker" ,
7171 " google-auth" ,
@@ -79,6 +79,7 @@ dev = [
7979 " pydantic" ,
8080 " PyAthena[Pandas]" ,
8181 " PyGithub>=2.6.0" ,
82+ " pyodbc" ,
8283 " pyperf" ,
8384 " pyspark~=3.5.0" ,
8485 " pytest" ,
Original file line number Diff line number Diff line change 11import base64
22import typing as t
3+ import sys
34from pathlib import Path
45from shutil import copytree
56
@@ -943,13 +944,18 @@ def test_db_type_to_column_class():
943944 from dbt .adapters .bigquery import BigQueryColumn
944945 from dbt .adapters .databricks .column import DatabricksColumn
945946 from dbt .adapters .snowflake import SnowflakeColumn
946- from dbt .adapters .sqlserver .sqlserver_column import SQLServerColumn
947947
948948 assert (TARGET_TYPE_TO_CONFIG_CLASS ["bigquery" ].column_class ) == BigQueryColumn
949949 assert (TARGET_TYPE_TO_CONFIG_CLASS ["databricks" ].column_class ) == DatabricksColumn
950950 assert (TARGET_TYPE_TO_CONFIG_CLASS ["duckdb" ].column_class ) == Column
951951 assert (TARGET_TYPE_TO_CONFIG_CLASS ["snowflake" ].column_class ) == SnowflakeColumn
952- assert (TARGET_TYPE_TO_CONFIG_CLASS ["sqlserver" ].column_class ) == SQLServerColumn
952+
953+ if sys .version_info < (3 , 13 ):
954+ # The dbt-sqlserver package is not currently compatible with Python 3.13
955+
956+ from dbt .adapters .sqlserver .sqlserver_column import SQLServerColumn
957+
958+ assert (TARGET_TYPE_TO_CONFIG_CLASS ["sqlserver" ].column_class ) == SQLServerColumn
953959
954960 from dbt .adapters .clickhouse .column import ClickHouseColumn
955961 from dbt .adapters .trino .column import TrinoColumn
You can’t perform that action at this time.
0 commit comments