Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.0.backport fixes #254

Merged
merged 4 commits into from
Mar 2, 2023
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
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ dbt-trino-tests:
./docker/dbt/build.sh
./docker/init_trino.bash
pip install -r dev_requirements.txt
tox -r || ./docker/remove_trino.bash
tox -r
./docker/run_tests.bash
./docker/remove_trino.bash

dbt-starburst-tests:
docker network create dbt-net || true
./docker/dbt/build.sh
./docker/init_starburst.bash
pip install -r dev_requirements.txt
tox -r || ./docker/remove_starburst.bash
tox -r
./docker/run_tests.bash
./docker/remove_starburst.bash
3 changes: 2 additions & 1 deletion dbt/adapters/trino/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
from trino.transaction import IsolationLevel
import sqlparse

from dbt.adapters.trino.__version__ import version

logger = AdapterLogger("Trino")

Expand Down Expand Up @@ -220,7 +221,7 @@ def open(cls, connection):
session_properties=credentials.session_properties,
auth=auth,
isolation_level=IsolationLevel.AUTOCOMMIT,
source="dbt-trino",
source=f"dbt-trino-{version}",
)
trino_conn._http_session.verify = credentials.cert
connection.state = 'open'
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def _get_dbt_core_version():
},
install_requires=[
"dbt-core~={}".format(dbt_version),
"trino==0.310.0",
"trino~=0.310.0",
"pytz>=2015.7",
],
)