From 9c7db28186b47765990a219625e8e44271bf7ef6 Mon Sep 17 00:00:00 2001 From: Petro Tiurin <93913847+ptiurin@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:43:02 +0100 Subject: [PATCH] feat(FIR-36122): Support host parameter as an alias (#139) --- .changes/unreleased/Added-20240902-150119.yaml | 3 +++ dbt/adapters/firebolt/connections.py | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 .changes/unreleased/Added-20240902-150119.yaml diff --git a/.changes/unreleased/Added-20240902-150119.yaml b/.changes/unreleased/Added-20240902-150119.yaml new file mode 100644 index 000000000..aa237f343 --- /dev/null +++ b/.changes/unreleased/Added-20240902-150119.yaml @@ -0,0 +1,3 @@ +kind: Added +body: Added host connection parameter alias +time: 2024-09-02T15:01:19.289961+01:00 diff --git a/dbt/adapters/firebolt/connections.py b/dbt/adapters/firebolt/connections.py index b4ac025be..ba0a3c71f 100644 --- a/dbt/adapters/firebolt/connections.py +++ b/dbt/adapters/firebolt/connections.py @@ -44,6 +44,10 @@ class FireboltCredentials(Credentials): account_name: Optional[str] = None retries: int = 1 + _ALIASES = { + 'host': 'api_endpoint', + } + def __post_init__(self) -> None: # If user and password are not provided, assume client_id and client_secret # are provided instead