Repository navigation
chore: clickhouse v2 driver - #7299
Closed
achettyiitr wants to merge 6 commits into
Closed
achettyiitr wants to merge 6 commits into
achettyiitr wants to merge 6 commits into
Conversation
achettyiitr
force-pushed
the
chore.clickhouse-v2-driver
branch
2 times, most recently
from
August 24, 2026 06:34
141f488 to
32e2c16
Compare
achettyiitr
force-pushed
the
chore.clickhouse-v2-driver
branch
2 times, most recently
from
August 24, 2026 09:12
f01bb16 to
25799ef
Compare
🔒 Scanned for secrets using gitleaks 8.29.1
achettyiitr
force-pushed
the
chore.clickhouse-v2-driver
branch
from
August 24, 2026 09:31
25799ef to
5cfa411
Compare
🔒 Scanned for secrets using gitleaks 8.29.1
achettyiitr
force-pushed
the
chore.clickhouse-v2-driver
branch
from
August 24, 2026 09:34
5cfa411 to
d4e7f1d
Compare
This was referenced Aug 24, 2026
achettyiitr
added a commit
that referenced
this pull request
Aug 25, 2026
# Description First of four PRs replacing the ClickHouse `clickhouse-go v1.5.4` driver with the fork of v2, `github.com/rudderlabs/clickhouse-go/v2`. This one adds the `ClickhouseV2` type and everything needed to reach a server: its configuration, `Setup` / `Connect` / `Cleanup`, `TestConnection`, TLS setup and `CreateSchema`. The v1 implementation in `clickhouse.go` is untouched. v2 lives beside it in the same package as `*_v2.go` files, so the two can run side by side during the rollout. Nothing constructs `NewV2` yet, so this changes no behaviour. Driver selection arrives in the last PR of the stack, behind `Warehouse.clickhouse.useV2Driver`, defaulting to false. `go.mod` / `go.sum` carry the fork here rather than in a separate dependency PR: `verify.yml` runs `go mod tidy` and fails on a diff, so a module with no importer would be dropped again. **The stack** — splitting #7299: 1. **this PR** — connection and schema 2. DDL operations — branches off this one 3. loading — branches off this one, independent of 2, either can merge first 4. feature flag and test coverage — after 2 and 3 ## Linear Ticket - Resolves INT-7019, INT-7018 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
achettyiitr
added a commit
that referenced
this pull request
Aug 25, 2026
# Description Table and column management for the v2 ClickHouse implementation, on top of the connection PR. - `CreateTable` and the users table, including the ReplacingMergeTree / cluster handling - column types and codecs, `notNullable` columns - partitioning: day, week, month and quarter - `DropTable`, `AddColumns`, `AlterColumn` - `FetchSchema`, mapping ClickHouse's `UNKNOWN_DATABASE` to an empty schema rather than a failure, and `TestFetchSchema` Independent of the loading PR — they touch disjoint files, so either can merge first. Part of the #7299 split; still nothing constructs the v2 implementation, so this changes no behaviour. ## Linear Ticket - Resolves INT-7019, INT-7018 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
mihir20
pushed a commit
that referenced
this pull request
Aug 31, 2026
# Description First of four PRs replacing the ClickHouse `clickhouse-go v1.5.4` driver with the fork of v2, `github.com/rudderlabs/clickhouse-go/v2`. This one adds the `ClickhouseV2` type and everything needed to reach a server: its configuration, `Setup` / `Connect` / `Cleanup`, `TestConnection`, TLS setup and `CreateSchema`. The v1 implementation in `clickhouse.go` is untouched. v2 lives beside it in the same package as `*_v2.go` files, so the two can run side by side during the rollout. Nothing constructs `NewV2` yet, so this changes no behaviour. Driver selection arrives in the last PR of the stack, behind `Warehouse.clickhouse.useV2Driver`, defaulting to false. `go.mod` / `go.sum` carry the fork here rather than in a separate dependency PR: `verify.yml` runs `go mod tidy` and fails on a diff, so a module with no importer would be dropped again. **The stack** — splitting #7299: 1. **this PR** — connection and schema 2. DDL operations — branches off this one 3. loading — branches off this one, independent of 2, either can merge first 4. feature flag and test coverage — after 2 and 3 ## Linear Ticket - Resolves INT-7019, INT-7018 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
mihir20
pushed a commit
that referenced
this pull request
Aug 31, 2026
# Description Table and column management for the v2 ClickHouse implementation, on top of the connection PR. - `CreateTable` and the users table, including the ReplacingMergeTree / cluster handling - column types and codecs, `notNullable` columns - partitioning: day, week, month and quarter - `DropTable`, `AddColumns`, `AlterColumn` - `FetchSchema`, mapping ClickHouse's `UNKNOWN_DATABASE` to an empty schema rather than a failure, and `TestFetchSchema` Independent of the loading PR — they touch disjoint files, so either can merge first. Part of the #7299 split; still nothing constructs the v2 implementation, so this changes no behaviour. ## Linear Ticket - Resolves INT-7019, INT-7018 ## Security - [x] The code changed/added as part of this pull request won't create any security issues with how the software is being used.
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.
Description
Security