Quinn
05/21/2024, 6:46 PMprefect_dbt.cli.configs
(snowflake bigquery postgres) or is there a more general option where someone could connect to something like clickhouseSean Williams
05/21/2024, 6:54 PMprofiles.yml
file. I just skimmed your post in dbt's slack, and it sounds like you could solve your env var/secret problem by loading Prefect secrets and setting them as an environment variables before you run the dbt job.Sean Williams
05/21/2024, 7:00 PMprefect-dbt
are you using?Quinn
05/21/2024, 7:09 PMName: prefect-dbt
Version: 0.4.3
I can use a profile path and pass the path to profiles.yml, but I'm not able to get the environment vars to show up when adding them to the work poolSean Williams
05/21/2024, 7:22 PMSean Williams
05/21/2024, 7:31 PMsecret_block = Secret.load('test-secret')
os.environ['clickhouse-cred'] = secret_block.get()
Quinn
05/21/2024, 7:34 PMQuinn
05/21/2024, 8:11 PM20:08:31.643 | INFO | Flow run 'adorable-boar' - PID 68 stream output:
20:08:31 Encountered an error:
Runtime Error
Credentials in profile "analytics", target "dev" invalid: Runtime Error
Could not find adapter type clickhouse!
Sean Williams
05/21/2024, 8:12 PMSean Williams
05/21/2024, 8:12 PMdbt-clickhouse
firstQuinn
05/21/2024, 8:24 PMQuinn
05/21/2024, 8:24 PMQuinn
05/21/2024, 8:24 PMQuinn
05/21/2024, 8:24 PM