SQLMESH with trino and dbt #4251
Closed
thomada1SICKAG
started this conversation in
General
Replies: 2 comments 1 reply
-
Hi @thomada1SICKAG, As you have discovered, the Trino engine cannot be used to store SQLMesh's state. You'll need to modify your # config.py, as generated by sqlmesh init trino --template dbt
from pathlib import Path
from sqlmesh.dbt.loader import sqlmesh_config
config = sqlmesh_config(Path(__file__).parent, state_connection=<fill this in>) Here's an example that demonstrates how to configure a Postgres ![]() |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you ! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tryed to initialize a new dbt project with sqlmesh as described. However, I thought that sqlmesh would use my connection setup from my profiles.yaml.
After starting the ui I know get the following error:
The TRINO engine cannot be used to store SQLMesh state - please specify a different
state_connection
engine. See https://sqlmesh.readthedocs.io/en/stable/reference/configuration/#gateways for more information.Inside the documentation, it is not specified how to fix this error if you use sqlmesh with dbt and a trino connection.
So does someone allready faced the issue and know how to fix that ?
Beta Was this translation helpful? Give feedback.
All reactions