Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
fix(dbt-fal): support latest dbt-trino (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederka authored Feb 14, 2023
1 parent 535b430 commit 5b7bbea
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_integration_adapter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# - duckdb
- snowflake
- redshift
# - trino
- trino
dbt_version:
- "1.4.*"
python:
Expand Down
1 change: 1 addition & 0 deletions projects/adapter/integration_tests/features/source.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@TODO-duckdb
@TODO-bigquery
@TODO-trino
Feature: dbt-fal can query sources
Background: Project Setup
Given the project source_freshness
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@TODO-trino
Feature: Python models
Background: Project Setup
Given the project simple_project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sqlalchemy

def create_engine(adapter: BaseAdapter) -> Any:
creds = adapter.config.credentials._db_creds
creds = adapter.config.credentials

connect_args = _build_connect_args(creds)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def _version_is_prerelease(raw_version: str) -> bool:
return package_version.is_prerelease


def _get_project_root_path(pacakge: str) -> Path:
import fal
def _get_project_root_path(package: str) -> Path:
from dbt.adapters import fal

# If this is a development version, we'll install
# the current fal itself.
Expand All @@ -328,7 +328,7 @@ def _get_project_root_path(pacakge: str) -> Path:
if (path.parent / ".git").exists():
break
path = path.parent
return path / pacakge
return path / package


def get_default_requirements(
Expand Down

0 comments on commit 5b7bbea

Please sign in to comment.