Skip to content

fix(warehouse): migrate snowflake to gosnowflake v2.3.0 - #7542

Merged
achettyiitr merged 2 commits into
release/1.92.xfrom
harness/INT-7456-snowflake-v2-release-1.92.x
Oct 28, 2026
Merged

achettyiitr merged 2 commits into
release/1.92.xfrom
harness/INT-7456-snowflake-v2-release-1.92.x

Conversation

@rudder-devbox

@rudder-devbox rudder-devbox Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Description

Base this Snowflake driver migration directly on release/1.92.x. This branch contains only the migration and the sqlconnect-go v1.36.0 release bump.

Replace rudder-server's direct v1 driver error assertion with snowflakequery.Describe in the same change as the sqlconnect-go bump. Keep the existing 42601 and nil-error outcomes. Remove the direct gosnowflake v1 import and requirement.

Keep exclude github.com/snowflakedb/gosnowflake v1.6.19: golang-migrate v4.20.1 declares that old driver for its unused Snowflake adapter. Without the exclusion, go list -m all selects v1.6.19 alongside /v2; with it, the graph contains only gosnowflake/v2 v2.3.0.

Linear Ticket

INT-7456

Validation

  • make fmt passed; the diff against release/1.92.x contains only go.mod, go.sum, and warehouse/integrations/snowflake/snowflake.go.
  • SLOW=0 go test -count=1 ./warehouse/integrations/snowflake passed (ok .../snowflake 0.127s); live integration skipped.
  • go build -p 1 ./..., go vet -p 1 ./..., go mod tidy -diff, and git diff --check passed.
  • go list -m all shows sqlconnect-go v1.36.0 and only github.com/snowflakedb/gosnowflake/v2 v2.3.0.
  • make lint: golangci-lint reported 0 issues, but the target failed at gitleaks on 197 findings in the release branch's existing history. A gitleaks scan of the two migration commits found no leaks.

Remaining validation

  • The credentialed Snowflake integration run requires SLOW=1 and SNOWFLAKE_INTEGRATION_TEST_CREDENTIALS; live duplicate-column behavior remains unverified here.
  • Smoke-test the production runtime image and rescan built images against the customer advisories after merge.

Copilot AI balanced review requested due to automatic review settings October 28, 2026 10:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The error-recognition migration lacks ungated regression tests for direct and wrapped Snowflake SQL-state errors, nil errors, and nonmatching errors, leaving required behavior unverified.

1 open issue
What changed in this PR

Migrates the warehouse Snowflake integration to gosnowflake v2.3.0 through sqlconnect-go v1.36.0 while preserving existing error-handling outcomes.

Changes:

  • Replaces the direct v1 driver error assertion with snowflakequery.Describe.
  • Updates dependencies and checksums for the v2 driver.
  • Excludes the legacy v1.6.19 driver required by golang-migrate’s unused Snowflake adapter.
File Description
warehouse/​integrations/​snowflake/​snowflake.go Uses driver-independent error details while retaining SQL-state and nil handling.
go.sum Updates checksums for sqlconnect-go, gosnowflake v2, and the new transitive dependency.
go.mod Bumps sqlconnect-go, replaces gosnowflake v1 with indirect v2, and excludes legacy v1.6.19.

Review effort: Balanced

@achettyiitr
achettyiitr merged commit 7d33b66 into release/1.92.x Oct 28, 2026
110 of 112 checks passed
@achettyiitr
achettyiitr deleted the harness/INT-7456-snowflake-v2-release-1.92.x branch October 28, 2026 10:56
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 85.19%. Comparing base (4bf0ddc) to head (ec3440c).
⚠️ Report is 1 commits behind head on release/1.92.x.

Files with missing lines Patch % Lines
warehouse/integrations/snowflake/snowflake.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##           release/1.92.x    #7542      +/-   ##
==================================================
- Coverage           85.24%   85.19%   -0.06%     
==================================================
  Files                 631      631              
  Lines               63010    62937      -73     
==================================================
- Hits                53713    53618      -95     
- Misses               9294     9316      +22     
  Partials                3        3              

☔ 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 pushed a commit that referenced this pull request Oct 28, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.92.1](v1.92.0...v1.92.1)
(2026-10-28)


### Bug Fixes

* **warehouse:** migrate snowflake to gosnowflake v2.3.0
([#7542](#7542))
([7d33b66](7d33b66))

---
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>
achettyiitr pushed a commit that referenced this pull request Oct 28, 2026
# Description

Syncing patch release v1.92.1 to main branch

**↓↓ Please review and edit commit overrides before merging ↓↓**

BEGIN_COMMIT_OVERRIDE
fix(warehouse): migrate snowflake to gosnowflake v2.3.0 (#7542)
END_COMMIT_OVERRIDE

---------

Co-authored-by: rudder-devbox[bot] <278693763+rudder-devbox[bot]@users.noreply.github.com>
Co-authored-by: tech-infra-rudderstack <[email protected]>
Co-authored-by: rudderstack-github-actions[bot] <236995729+rudderstack-github-actions[bot]@users.noreply.github.com>
atzoum pushed a commit that referenced this pull request Nov 9, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.93.0-rc.1](v1.92.0...v1.93.0-rc.1)
(2026-11-09)


### Features

* **destination:** recognize machine_oauth accounts as oauth
([#7549](#7549))
([f51e4ca](f51e4ca))
* incremental definitions on the v2 namespace config
([#7487](#7487))
([ce51e38](ce51e38))
* **processor:** add flag to abort python transformations on deployments
that do not offer them
([#7571](#7571))
([ca85eb2](ca85eb2))
* **processor:** filter http v2 events by destination message types
([#7538](#7538))
([58fd176](58fd176))
* **processor:** send the workspace id to per-workspace pyt pods
([#7551](#7551))
([ea33835](ea33835))
* **warehouse:** add maxcompute destination
([#7568](#7568))
([a64bfd9](a64bfd9))


### Bug Fixes

* **batchrouter:** abort bq stream all events jobs on terminal auth
failures
([#7548](#7548))
([6b7e023](6b7e023))
* bump andybalholm/brotli to v1.2.7 [SEC-759]
([#7525](#7525))
([6dfe468](6dfe468))
* bump rudder-go-kit to v0.84.3
([#7547](#7547))
([355054a](355054a))
* **core:** schema forwarder panics on shutdown
([#7519](#7519))
([dd61cfc](dd61cfc))
* database connections hang when context is cancelled during a copy
([#7578](#7578))
([8dae6e3](8dae6e3))
* **jobsdb:** compaction missing pairs after one that doesn't fit
([#7574](#7574))
([573271b](573271b))
* **jobsdb:** multiconsumer recovery misses a consumer's executing
status after another consumer's later status
([#7554](#7554))
([69b43e0](69b43e0))
* **jobsdb:** old jobs not expiring for every consumer
([#7573](#7573))
([366f114](366f114))
* **jobsdb:** pickups stalling on status tables with skewed stats
([#7572](#7572))
([318446f](318446f))
* **jobsdb:** unionjobsdb functions pick the first datasets by table
name ([#7558](#7558))
([e94d6c5](e94d6c5))
* **router:** event order test only counts drained jobs of the last
dataset
([#7552](#7552))
([b0a097a](b0a097a))
* **router:** mask secrets in array-shaped reporting samples
([#7536](#7536))
([902160f](902160f))
* **warehouse:** hot-reload degraded workspaces without aborting
restored uploads
([#7564](#7564))
([cb98598](cb98598))
* **warehouse:** match deltalake columns case-insensitively
([#7563](#7563))
([a7d30d7](a7d30d7))
* **warehouse:** migrate snowflake to gosnowflake v2.3.0
([#7542](#7542))
([cc09426](cc09426))
* **warehouse:** skip job-creation error log on router shutdown
([#7567](#7567))
([895367e](895367e))


### Miscellaneous

* **deps:** bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6
([#7545](#7545))
([35ee952](35ee952))
* export only the +Inf bucket for limiter timers
([#7570](#7570))
([4429472](4429472))
* **router:** add drainReason label to pipeline_processed_events
([#7561](#7561))
([af0aef8](af0aef8))
* sync release v1.92.0 to main branch
([#7534](#7534))
([9ab165d](9ab165d))
* **warehouse:** bump sqlconnect-go to v1.37.1
([#7575](#7575))
([acdad67](acdad67))

---
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>
atzoum pushed a commit that referenced this pull request Nov 10, 2026
🤖 I have created a release *beep* *boop*
---


##
[1.93.0](v1.92.0...v1.93.0)
(2026-11-09)


### Features

* **destination:** recognize machine_oauth accounts as oauth
([#7549](#7549))
([f51e4ca](f51e4ca))
* incremental definitions on the v2 namespace config
([#7487](#7487))
([ce51e38](ce51e38))
* **processor:** add flag to abort python transformations on deployments
that do not offer them
([#7571](#7571))
([ca85eb2](ca85eb2))
* **processor:** filter http v2 events by destination message types
([#7538](#7538))
([58fd176](58fd176))
* **processor:** send the workspace id to per-workspace pyt pods
([#7551](#7551))
([ea33835](ea33835))
* **warehouse:** add maxcompute destination
([#7568](#7568))
([a64bfd9](a64bfd9))


### Bug Fixes

* **batchrouter:** abort bq stream all events jobs on terminal auth
failures
([#7548](#7548))
([6b7e023](6b7e023))
* bump andybalholm/brotli to v1.2.7 [SEC-759]
([#7525](#7525))
([6dfe468](6dfe468))
* bump rudder-go-kit to v0.84.3
([#7547](#7547))
([355054a](355054a))
* **core:** schema forwarder panics on shutdown
([#7519](#7519))
([dd61cfc](dd61cfc))
* database connections hang when context is cancelled during a copy
([#7578](#7578))
([8dae6e3](8dae6e3))
* **jobsdb:** compaction missing pairs after one that doesn't fit
([#7574](#7574))
([573271b](573271b))
* **jobsdb:** multiconsumer recovery misses a consumer's executing
status after another consumer's later status
([#7554](#7554))
([69b43e0](69b43e0))
* **jobsdb:** old jobs not expiring for every consumer
([#7573](#7573))
([366f114](366f114))
* **jobsdb:** pickups stalling on status tables with skewed stats
([#7572](#7572))
([318446f](318446f))
* **jobsdb:** unionjobsdb functions pick the first datasets by table
name ([#7558](#7558))
([e94d6c5](e94d6c5))
* **router:** event order test only counts drained jobs of the last
dataset
([#7552](#7552))
([b0a097a](b0a097a))
* **router:** mask secrets in array-shaped reporting samples
([#7536](#7536))
([902160f](902160f))
* **warehouse:** hot-reload degraded workspaces without aborting
restored uploads
([#7564](#7564))
([cb98598](cb98598))
* **warehouse:** match deltalake columns case-insensitively
([#7563](#7563))
([a7d30d7](a7d30d7))
* **warehouse:** migrate snowflake to gosnowflake v2.3.0
([#7542](#7542))
([cc09426](cc09426))
* **warehouse:** skip job-creation error log on router shutdown
([#7567](#7567))
([895367e](895367e))


### Miscellaneous

* **deps:** bump github.com/go-jose/go-jose/v4 from 4.1.4 to 4.1.6
([#7545](#7545))
([35ee952](35ee952))
* export only the +Inf bucket for limiter timers
([#7570](#7570))
([4429472](4429472))
* **router:** add drainReason label to pipeline_processed_events
([#7561](#7561))
([af0aef8](af0aef8))
* sync release v1.92.0 to main branch
([#7534](#7534))
([9ab165d](9ab165d))
* **warehouse:** bump sqlconnect-go to v1.37.1
([#7575](#7575))
([acdad67](acdad67))

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