Skip to content

chore(warehouse): replace dead clickhouse blockSize with commitEvery - #7427

Merged
achettyiitr merged 3 commits into
masterfrom
wt-ch-config-cleanup
Sep 25, 2026
Merged

achettyiitr merged 3 commits into
masterfrom
wt-ch-config-cleanup

Conversation

@achettyiitr

@achettyiitr achettyiitr commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What

Replaces the dead blockSize: 1000 with commitEvery: 1000 in the ClickHouse block of config/config.yaml.

   clickhouse:
     maxParallelLoads: 3
     queryDebugLogs: false
-    blockSize: 1000
+    commitEvery: 1000
     poolSize: 10

Why

Warehouse.clickhouse.blockSize is no longer read. The v1 driver was removed in #7417 and the v2 equivalent is Warehouse.clickhouse.commitEvery, so the shipped value has had no effect since that merged. The only blockSize left in the tree is the warehouse.clickhouse.blockSize stats histogram, which is unrelated and untouched.

This matters because config/config.yaml is live config, not documentation — it deliberately overrides code defaults for self-hosted deployments:

Key Code default Shipped
poolSize 100 10
maxParallelLoads 8 3
commitEvery 1,000,000 1,000 (this PR)

Carrying the value across keeps that conservative posture rather than silently handing self-hosted deployments the 1,000,000-row driver default.

Behaviour change — worth a reviewer's attention

This is not a no-op. blockSize was only ever read by v1, so anyone running v2 has been getting the 1,000,000 default regardless of what this file said. Setting commitEvery: 1000 brings self-hosted commit size down by three orders of magnitude from what it is today.

That means smaller, more frequent inserts: lower peak memory per commit, more round trips. For reference, tuned production values sit between 25,000 and 250,000.

If 1,000 is considered too low for a default, the alternatives are a mid-range value or dropping the key entirely and letting the driver default apply.

Not changed

enableArraySupport stays — still read at processor/internal/transformer/destination_transformer/destination_transformer.go:366 and passed to the destination transformer as chEnableArraySupport.

🤖 Generated with Claude Code

Warehouse.clickhouse.blockSize is no longer read. The v1 driver was removed
in #7417 and the v2 equivalent is Warehouse.clickhouse.commitEvery, so the
shipped value had no effect. The only blockSize left in the tree is the
warehouse.clickhouse.blockSize stats histogram, which is unrelated.

Not replaced with commitEvery. blockSize: 1000 was a v1 value for a different
mechanism, and production commitEvery values run 25k-250k against a code
default of 1000000, so carrying 1000 across would assert a tuning decision
with no basis. Unset means the driver default applies.

enableArraySupport stays - it is still read by the processor and passed to
the destination transformer as chEnableArraySupport.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr
achettyiitr requested a review from cisse21 September 25, 2026 07:17
…config

Keeps the successor key visible in the shipped config rather than leaving
the ClickHouse block with no commit-size knob at all.

Set to 1000000, the driver default, so runtime behaviour is unchanged.
blockSize was only ever read by the v1 driver; v2 has always fallen through
to this default because config.yaml never set the v2 key, so nothing moves
either way.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

🔒 Scanned for secrets using gitleaks 8.29.1
Keeps the value the file already shipped for blockSize rather than the
driver default, preserving the conservative posture this config uses
elsewhere (poolSize 10 vs 100, maxParallelLoads 3 vs 8).

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

🔒 Scanned for secrets using gitleaks 8.29.1
@achettyiitr achettyiitr changed the title chore(warehouse): drop dead clickhouse blockSize from shipped config chore(warehouse): replace dead clickhouse blockSize with commitEvery Sep 25, 2026
@achettyiitr
achettyiitr merged commit 0806478 into master Sep 25, 2026
26 of 27 checks passed
@achettyiitr
achettyiitr deleted the wt-ch-config-cleanup branch September 25, 2026 07:29
This was referenced Sep 28, 2026
itsmihir pushed a commit that referenced this pull request Sep 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.89.0-rc.1](v1.88.0...v1.89.0-rc.1)
(2026-09-28)


### Features

* **warehouse:** add shared SQL identifier and string literal quoting
helpers
([#7406](#7406))
([814f6db](814f6db))


### Bug Fixes

* **warehouse:** quote azure synapse identifiers
([#7363](#7363))
([d399fd1](d399fd1))
* **warehouse:** quote bigquery identifiers
([#7366](#7366))
([89de526](89de526))
* **warehouse:** quote clickhouse identifiers
([#7420](#7420))
([490c097](490c097))
* **warehouse:** quote deltalake identifiers
([#7368](#7368))
([08f2f1e](08f2f1e))
* **warehouse:** quote mssql identifiers
([#7364](#7364))
([695b881](695b881))
* **warehouse:** quote postgres load column list and bind schema
existence check
([#7405](#7405))
([2ff81c1](2ff81c1))
* **warehouse:** quote redshift identifiers
([#7365](#7365))
([a3e2a3c](a3e2a3c))
* **warehouse:** quote snowflake identifiers
([#7367](#7367))
([53d4891](53d4891))


### Miscellaneous

* sync release v1.88.0 to main branch
([#7415](#7415))
([130bdd3](130bdd3))
* **warehouse:** drop the per dialect identifier quoting wrappers
([#7421](#7421))
([ec0cf52](ec0cf52))
* **warehouse:** drop the v2 suffix now v1 is gone
([#7418](#7418))
([b759c33](b759c33))
* **warehouse:** move back to upstream clickhouse-go
([#7419](#7419))
([1a7e776](1a7e776))
* **warehouse:** remove the ClickHouse v1 driver
([#7417](#7417))
([bd14179](bd14179))
* **warehouse:** replace dead clickhouse blockSize with commitEvery
([#7427](#7427))
([0806478](0806478))

---
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 29, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.89.0](v1.88.0...v1.89.0)
(2026-09-28)


### Features

* **warehouse:** add shared SQL identifier and string literal quoting
helpers
([#7406](#7406))
([814f6db](814f6db))


### Bug Fixes

* **warehouse:** quote azure synapse identifiers
([#7363](#7363))
([d399fd1](d399fd1))
* **warehouse:** quote bigquery identifiers
([#7366](#7366))
([89de526](89de526))
* **warehouse:** quote clickhouse identifiers
([#7420](#7420))
([490c097](490c097))
* **warehouse:** quote deltalake identifiers
([#7368](#7368))
([08f2f1e](08f2f1e))
* **warehouse:** quote mssql identifiers
([#7364](#7364))
([695b881](695b881))
* **warehouse:** quote postgres load column list and bind schema
existence check
([#7405](#7405))
([2ff81c1](2ff81c1))
* **warehouse:** quote redshift identifiers
([#7365](#7365))
([a3e2a3c](a3e2a3c))
* **warehouse:** quote snowflake identifiers
([#7367](#7367))
([53d4891](53d4891))


### Miscellaneous

* sync release v1.88.0 to main branch
([#7415](#7415))
([130bdd3](130bdd3))
* **warehouse:** drop the per dialect identifier quoting wrappers
([#7421](#7421))
([ec0cf52](ec0cf52))
* **warehouse:** drop the v2 suffix now v1 is gone
([#7418](#7418))
([b759c33](b759c33))
* **warehouse:** move back to upstream clickhouse-go
([#7419](#7419))
([1a7e776](1a7e776))
* **warehouse:** remove the ClickHouse v1 driver
([#7417](#7417))
([bd14179](bd14179))
* **warehouse:** replace dead clickhouse blockSize with commitEvery
([#7427](#7427))
([0806478](0806478))

---
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.

2 participants