Skip to content

chore: clickhouse v2 driver - #7299

Closed
achettyiitr wants to merge 6 commits into
masterfrom
chore.clickhouse-v2-driver
Closed

achettyiitr wants to merge 6 commits into
masterfrom
chore.clickhouse-v2-driver

Conversation

@achettyiitr

Copy link
Copy Markdown
Member

Description

  • Clickhouse v2 driver.

Security

  • The code changed/added as part of this pull request won't create any security issues with how the software is being used.

@achettyiitr
achettyiitr force-pushed the chore.clickhouse-v2-driver branch 2 times, most recently from 141f488 to 32e2c16 Compare August 24, 2026 06:34
@achettyiitr achettyiitr changed the title Chore.clickhouse v2 driver chore: clickhouse v2 driver Aug 24, 2026
@achettyiitr
achettyiitr force-pushed the chore.clickhouse-v2-driver branch 2 times, most recently from f01bb16 to 25799ef Compare August 24, 2026 09:12
@achettyiitr
achettyiitr force-pushed the chore.clickhouse-v2-driver branch from 25799ef to 5cfa411 Compare August 24, 2026 09:31
🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr force-pushed the chore.clickhouse-v2-driver branch from 5cfa411 to d4e7f1d Compare August 24, 2026 09:34
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.
@github-actions
github-actions Bot deleted the chore.clickhouse-v2-driver branch October 25, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants