Custom dbt Transformations: Add method to supply custom params to profiles.yml output #31471
Replies: 2 comments
-
Thanks for the proposition @jfillmore I moved to become a discussion and receive votes. |
Beta Was this translation helpful? Give feedback.
-
One more comment to make about this issue. We continue to be plagued by problems caused by DBT defaulting to infinite timeouts for some HTTP requests that aren't respecting it's own timeout options. Perhaps a simpler, more direct approach is just to expose an option within Airbyte to customize how long the normalization step is allowed to take? I think this would compliment the global Internally, we've been forced to apply an additional hack, much like the one described above. Our custom Docker image for DBT provides a wrapper around |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What area the feature impact?
Connectors
Revelant Information
We are using Airbyte with DBT and BigQuery as the destination. We're having frequent problems with connection runs stalling out because DBT gets stuck waiting on BigQuery API calls that never complete (verified using lsof/strace/gdb to pinpoint precisely). This causes the run to hang until
SYNC_JOB_MAX_TIMEOUT_DAYS
is reached, which we need to be relatively large to allow for ad hoc large backfills, source data selection growth, andDBT has the configuration option https://docs.getdbt.com/docs/core/connect-data-platform/bigquery-setup#job_execution_timeout_seconds that seems the best way for us to address this issue, but there seems to be no way to set this within Airbyte when
entrypoint.sh
callstransform-config
to generateprofiles.yml
. Because this configuration option is specific to the profile (e.g. "prod" in Airbyte's case), there aren't any env variables for CLI options available within DBT that can be set.We are currently solving this by using a custom DBT image that hijacks
/usr/local/bin/dbt
to rewriteprofiles.yml
on-the-fly to suit our needs, but because there are a lot of potentially useful options we think it would be great to have a way to set parameters dynamically within the custom transformation configuration.Some ideas:
Thanks for your consideration!
Beta Was this translation helpful? Give feedback.
All reactions