Closed kraft6 closed 1 month ago
Hi @kraft6 👋
when I use both DBT and Cube Dev, which one is connecting to the source data?
Cube is.
My assumption is dbt is being used to connect to the source data through the profile settings.
Well, I have to admit that this is an incorrect assumption. Cube does not access or use dbt profiles. However, it can read the manifest file and simplify defining the data model through that.
Do I have to have anything in the .env CubeDev file?
You mentioned that your data source is Trino. You need to configure a connection from Cube to Trino then. Please use these instructions: https://cube.dev/docs/product/configuration/data-sources/trino
You might also find this guide helpful: https://cube.dev/docs/guides/dbt
Hi @kraft6 👋 Did my advice help?
It did. Thank you. U can claw this request.
Problem
My main question is when I use both DBT and Cube Dev, which one is connecting to the source data? My assumption is dbt is being used to connect to the source data through the profile settings. My profile is using oauth to connect to trino:
I am using dbt-core version 1.8.3 with the trino plugin 1.8.1 and the latest cubejs/cube image from docker.
When I fire up the playground: localhost:4000, I can see my measures and dimensions, but when I go to run I am getting the error “execution error:Unauthorized”. Do I have to have anything in the .env CubeDev file? I am expecting dbt to connect to the sources and the results passed through. Dbt is connecting to starburst views.
Below are the errors I am capturing from Docker: