Skip to content

fix: Don't re-use scan destination between rows scan#21058

Merged
kodiakhq[bot] merged 2 commits intomainfrom
fix/clickhouse_read
Jul 16, 2025
Merged

fix: Don't re-use scan destination between rows scan#21058
kodiakhq[bot] merged 2 commits intomainfrom
fix/clickhouse_read

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Jul 16, 2025

Summary

I believe this should fix the flaky ClickHouse destination tests we've been seeing for a long while.

We were re-using the scan destination between scans which caused under some conditions to keep the previous read value instead of overwriting (I saw this happen when we first read a non null value, then supposed to read a null value, but I guess ClickHouse has some optimization so skip reading the null value). Oddly enough I only saw this for boolean, decimal, uuid types.

@cq-bot
Copy link
Copy Markdown
Contributor

cq-bot commented Jul 16, 2025

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jul 16, 2025
kodiakhq bot pushed a commit to cloudquery/plugin-sdk that referenced this pull request Jul 16, 2025


Cleans up #2226, #2220 and #2217.

I believe I found the issue and the fix is cloudquery/cloudquery#21058

---
@kodiakhq kodiakhq bot merged commit bc909ad into main Jul 16, 2025
17 checks passed
@kodiakhq kodiakhq bot deleted the fix/clickhouse_read branch July 16, 2025 16:56
kodiakhq bot pushed a commit that referenced this pull request Jul 16, 2025
🤖 I have created a release *beep* *boop*
---


## [7.1.3](plugins-destination-clickhouse-v7.1.2...plugins-destination-clickhouse-v7.1.3) (2025-07-16)


### Bug Fixes

* Delete stale sync time precision ([#21049](#21049)) ([52b48c8](52b48c8))
* Don't re-use scan destination between rows scan ([#21058](#21058)) ([bc909ad](bc909ad))

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

Nice find 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/plugin/destination/clickhouse automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants