Repository navigation
chore: sync release v1.92.1 to main branch - #7544
Merged
achettyiitr merged 2 commits intoOct 28, 2026
Merged
Conversation
# 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](https://linear.app/rudderstack/issue/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. --------- Co-authored-by: tech-infra-rudderstack <[email protected]>
🤖 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>
There was a problem hiding this comment.
🟡 Changes recommended
The switch to snowflakequery.Describe lacks credential-free regression tests confirming duplicate-column suppression without ignoring other errors.
1 open issue
What changed in this PR
Syncs patch release v1.92.1 to main, bringing the Snowflake driver migration from #7542 into the warehouse integration.
Changes:
- Upgrades
sqlconnect-goto v1.36.0 and adoptsgosnowflake/v2v2.3.0. - Replaces the direct driver error assertion with
snowflakequery.Describe, retaining the SQLSTATE42601and nil-error outcomes. - Records the release and excludes the legacy driver version required by golang-migrate’s unused Snowflake adapter.
| File | Description |
|---|---|
| warehouse/integrations/snowflake/snowflake.go | Uses the driver-independent Snowflake error classifier. |
| go.sum | Updates checksums for the migrated dependencies. |
| go.mod | Updates dependencies and excludes the legacy Snowflake driver version. |
| CHANGELOG.md | Adds the v1.92.1 release entry. |
Review effort: Balanced
| if err != nil { | ||
| // TODO: throw error if column already exists but of different type | ||
| if e, ok := errors.AsType[*snowflake.SnowflakeError](err); ok && e.SQLState == "42601" { | ||
| if details, ok := snowflakequery.Describe(err); ok && details.SQLState == "42601" { |
achettyiitr
approved these changes
Oct 28, 2026
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7544 +/- ##
==========================================
+ Coverage 85.24% 85.27% +0.02%
==========================================
Files 631 631
Lines 63010 63063 +53
==========================================
+ Hits 53713 53776 +63
+ Misses 9294 9284 -10
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
achettyiitr
deleted the
sync-release-fe33709ab44daa4345c1f1a3a4a07cbf1d251972
branch
October 28, 2026 13:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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