Skip to content

feat(warehouse): clickhouse v2 ddl operations - #7302

Merged
achettyiitr merged 1 commit into
masterfrom
feat.clickhouse-v2-ddl
Aug 25, 2026
Merged

achettyiitr merged 1 commit into
masterfrom
feat.clickhouse-v2-ddl

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

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

  • 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 feat.clickhouse-v2-connection branch from 1de6d74 to a51afbb Compare August 25, 2026 05:00
@achettyiitr
achettyiitr force-pushed the feat.clickhouse-v2-ddl branch from 980795a to bda4eee Compare August 25, 2026 05:40
@achettyiitr
achettyiitr force-pushed the feat.clickhouse-v2-connection branch from 487616e to e6cb13f Compare August 25, 2026 08:13
Base automatically changed from feat.clickhouse-v2-connection to master August 25, 2026 08:48
Table and column management for the v2 implementation: CREATE TABLE and the
users table, column types and codecs, partitioning, DROP TABLE, ADD COLUMN and
schema fetching.

Independent of the loading PR; either can merge first.
@achettyiitr
achettyiitr force-pushed the feat.clickhouse-v2-ddl branch from bda4eee to 223235a Compare August 25, 2026 08:52
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 170 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.76%. Comparing base (2eb1fa6) to head (223235a).

Files with missing lines Patch % Lines
warehouse/integrations/clickhouse/clickhousev2.go 0.00% 165 Missing ⚠️
warehouse/integrations/clickhouse/driver_v2.go 0.00% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7302      +/-   ##
==========================================
- Coverage   79.90%   79.76%   -0.15%     
==========================================
  Files         604      604              
  Lines       67522    67692     +170     
==========================================
+ Hits        53956    53992      +36     
- Misses      10387    10519     +132     
- Partials     3179     3181       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@achettyiitr
achettyiitr merged commit f2887c5 into master Aug 25, 2026
115 of 117 checks passed
@achettyiitr
achettyiitr deleted the feat.clickhouse-v2-ddl branch August 25, 2026 15:12
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 was referenced Aug 31, 2026
itsmihir pushed a commit that referenced this pull request Aug 31, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.85.0-rc.1](v1.84.0...v1.85.0-rc.1)
(2026-08-31)


### Features

* backend config v2 resolver with stub mapper
([#7275](#7275))
([267b973](267b973))
* **warehouse:** clickhouse v2 connection and schema
([#7301](#7301))
([2eb1fa6](2eb1fa6))
* **warehouse:** clickhouse v2 ddl operations
([#7302](#7302))
([f2887c5](f2887c5))
* **warehouse:** clickhouse v2 loading
([#7303](#7303))
([3e48618](3e48618))
* **warehouse:** enable the clickhouse v2 driver behind a flag
([#7311](#7311))
([3ce1da5](3ce1da5))


### Bug Fixes

* race conditions while counting initial pending events can cause wrong
counting
([#7292](#7292))
([3efa718](3efa718))
* replay destinations not using the config corresponding to their
connected source type
([#7307](#7307))
([ee7aa93](ee7aa93))
* **router:** abort router-transform on proactive invalid_grant instead
of retrying (INT-6779)
([#7175](#7175))
([4d7348d](4d7348d))
* tracking plan merged config is cached without its event type
([#7314](#7314))
([624dd5c](624dd5c))


### Miscellaneous

* setattr/delattr hardening
([#7291](#7291))
([2855af4](2855af4))
* sync release v1.84.0 to main branch
([#7306](#7306))
([fa102b7](fa102b7))
* webhook reasons
([#7294](#7294))
([c298d59](c298d59))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
itsmihir pushed a commit that referenced this pull request Sep 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.85.0](v1.84.0...v1.85.0)
(2026-08-31)


### Features

* backend config v2 resolver with stub mapper
([#7275](#7275))
([267b973](267b973))
* **warehouse:** clickhouse v2 connection and schema
([#7301](#7301))
([2eb1fa6](2eb1fa6))
* **warehouse:** clickhouse v2 ddl operations
([#7302](#7302))
([f2887c5](f2887c5))
* **warehouse:** clickhouse v2 loading
([#7303](#7303))
([3e48618](3e48618))
* **warehouse:** enable the clickhouse v2 driver behind a flag
([#7311](#7311))
([3ce1da5](3ce1da5))


### Bug Fixes

* race conditions while counting initial pending events can cause wrong
counting
([#7292](#7292))
([3efa718](3efa718))
* replay destinations not using the config corresponding to their
connected source type
([#7307](#7307))
([ee7aa93](ee7aa93))
* **router:** abort router-transform on proactive invalid_grant instead
of retrying (INT-6779)
([#7175](#7175))
([4d7348d](4d7348d))
* tracking plan merged config is cached without its event type
([#7314](#7314))
([624dd5c](624dd5c))


### Miscellaneous

* setattr/delattr hardening
([#7291](#7291))
([2855af4](2855af4))
* sync release v1.84.0 to main branch
([#7306](#7306))
([fa102b7](fa102b7))
* webhook reasons
([#7294](#7294))
([c298d59](c298d59))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
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.

3 participants