Document reuse_connections profile option for dbt-clickhouse#6378
Open
dlouseiro wants to merge 1 commit into
Open
Document reuse_connections profile option for dbt-clickhouse#6378dlouseiro wants to merge 1 commit into
reuse_connections profile option for dbt-clickhouse#6378dlouseiro wants to merge 1 commit into
Conversation
Adds the `reuse_connections` option (default `True`) to the dbt profile.yml configuration table. When set to `False`, dbt closes the underlying connection at the end of each model so the next model opens a fresh TCP connection — useful on multi-replica ClickHouse Cloud services where the load balancer routes by TCP connection and a long-lived pool would otherwise pin a `dbt run` to a single replica. Tracks ClickHouse/dbt-clickhouse#669 / ClickHouse/dbt-clickhouse#670.
|
@dlouseiro is attempting to deploy a commit to the ClickHouse Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Documents the new
reuse_connectionsoption in the dbt-clickhouse adapter'sprofiles.ymlconfiguration table. Follow-up to ClickHouse/dbt-clickhouse#669 / ClickHouse/dbt-clickhouse#670.When set to
false, dbt closes the underlying connection at the end of each model so the next model opens a fresh TCP connection — useful on multi-replica ClickHouse Cloud services where the load balancer routes by connection and a long-lived pool would otherwise pin adbt runto a single replica. Default istrue, preserving current behaviour.Single-line addition next to the related
tcp_keepalivesetting indocs/integrations/data-ingestion/etl-tools/dbt/features-and-configurations.md.Checklist
Note
Low Risk
Documentation-only change with no runtime or configuration behavior changes in this repo.
Overview
Adds
reuse_connectionsto the dbt ClickHouseprofiles.ymlreference infeatures-and-configurations.md, placed aftertcp_keepalive.The entry documents default
True(reuse one connection across models) andFalse(close after each model for a new TCP connection), with guidance for multi-replica ClickHouse Cloud when the load balancer pins traffic by connection.Reviewed by Cursor Bugbot for commit d298f24. Bugbot is set up for automated code reviews on this repo. Configure here.