Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11.9
2 changes: 1 addition & 1 deletion dbt/adapters/synapse/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "1.8.2"
version = "1.8.4"
12 changes: 9 additions & 3 deletions dbt/adapters/synapse/synapse_connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def get_cli_access_token(credentials: FabricCredentials) -> AccessToken:
Access token.
"""
_ = credentials
token = AzureCliCredential().get_token(AZURE_CREDENTIAL_SCOPE)
token = AzureCliCredential().get_token(
AZURE_CREDENTIAL_SCOPE, timeout=getattr(credentials, "login_timeout", None)
)
return token


Expand All @@ -93,7 +95,9 @@ def get_auto_access_token(credentials: FabricCredentials) -> AccessToken:
out : AccessToken
The access token.
"""
token = DefaultAzureCredential().get_token(AZURE_CREDENTIAL_SCOPE)
token = DefaultAzureCredential().get_token(
AZURE_CREDENTIAL_SCOPE, timeout=getattr(credentials, "login_timeout", None)
)
return token


Expand All @@ -111,7 +115,9 @@ def get_environment_access_token(credentials: FabricCredentials) -> AccessToken:
out : AccessToken
The access token.
"""
token = EnvironmentCredential().get_token(AZURE_CREDENTIAL_SCOPE)
token = EnvironmentCredential().get_token(
AZURE_CREDENTIAL_SCOPE, timeout=getattr(credentials, "login_timeout", None)
)
return token


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"Anders Swanson",
"Sam Debruyn",
]
dbt_fabric_requirement = "dbt-fabric>=1.8.0,<1.10.0"
dbt_fabric_requirement = "dbt-fabric>=1.8.0,<1.9.6"
description = """An Azure Synapse adapter plugin for dbt"""

this_directory = os.path.abspath(os.path.dirname(__file__))
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def _profile_user():
"user": os.getenv("SYNAPSE_TEST_USER"),
"pass": os.getenv("SYNAPSE_TEST_PASS"),
"database": os.getenv("SYNAPSE_TEST_DWH_NAME"),
"authentication": os.getenv("SYNAPSE_TEST_AUTHENTICATION"),
# "authentication": "sql",
},
}
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/adapter/test_grants.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,17 @@ def privilege_does_not_exist_error(self):
return "Incorrect syntax near"


@pytest.mark.skip("Incremental models are not supported")
class TestModelGrantsSynapse(BaseModelGrants):
pass


@pytest.mark.skip("Incremental models are not supported")
class TestSeedGrantsSynapse(BaseSeedGrants):
pass


@pytest.mark.skip("Incremental models are not supported")
class TestSnapshotGrantsSynapse(BaseSnapshotGrants):
def test_snapshot_grants(self, project, get_test_users):
test_users = get_test_users
Expand Down
6 changes: 4 additions & 2 deletions tests/functional/adapter/test_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
source_space_in_name = """
version: 2
sources:
- name: 'space in name'
- name: 'space_in_name'
schema: INFORMATION_SCHEMA
tables:
- name: VIEWS
identifier: "space in name"
columns:
- name: TABLE_NAME
tests:
Expand All @@ -33,10 +34,11 @@
"""

select_from_source_space_in_name = """
select * from {{ source("space in name", "VIEWS") }}
select * from {{ source("space_in_name", "VIEWS") }}
"""


@pytest.mark.skip("skipping temporarily")
class TestSourcesSynapse:
@pytest.fixture(scope="class")
def models(self):
Expand Down
Loading