diff --git a/.github/workflows/publish_plugin_to_hub_duckdb.yml b/.github/workflows/publish_plugin_to_hub_duckdb.yml index 39daa8ee0715a8..1f57fb0b388874 100644 --- a/.github/workflows/publish_plugin_to_hub_duckdb.yml +++ b/.github/workflows/publish_plugin_to_hub_duckdb.yml @@ -88,7 +88,7 @@ jobs: contents: write runs-on: ubuntu-latest container: - image: ghcr.io/gythialy/golang-cross:1.26.1 + image: ghcr.io/gythialy/golang-cross:1.26.0 needs: - prepare - build-config-ui diff --git a/.github/workflows/publish_plugin_to_hub_snowflake.yml b/.github/workflows/publish_plugin_to_hub_snowflake.yml index 24b1fdddb2d03c..003aa55f1aeabe 100644 --- a/.github/workflows/publish_plugin_to_hub_snowflake.yml +++ b/.github/workflows/publish_plugin_to_hub_snowflake.yml @@ -88,7 +88,7 @@ jobs: contents: write runs-on: ubuntu-latest container: - image: ghcr.io/gythialy/golang-cross:1.26.1 + image: ghcr.io/gythialy/golang-cross:1.26.0 env: GOAMD64: v1 needs: diff --git a/.github/workflows/publish_plugin_to_hub_sqlite.yml b/.github/workflows/publish_plugin_to_hub_sqlite.yml index ddc6b25365a18b..f4f5ff42806334 100644 --- a/.github/workflows/publish_plugin_to_hub_sqlite.yml +++ b/.github/workflows/publish_plugin_to_hub_sqlite.yml @@ -88,7 +88,7 @@ jobs: contents: write runs-on: ubuntu-latest container: - image: ghcr.io/gythialy/golang-cross:1.26.1 + image: ghcr.io/gythialy/golang-cross:1.26.0 needs: - prepare - build-config-ui diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 4cc3f7d6560371..0a54ace15b79b5 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -25,7 +25,7 @@ "plugins/destination/test+FILLER": "0.0.0", "plugins/destination/sqlite": "2.14.7", "plugins/destination/sqlite+FILLER": "0.0.0", - "plugins/destination/snowflake": "5.2.7", + "plugins/destination/snowflake": "5.2.9", "plugins/destination/snowflake+FILLER": "0.0.0", "plugins/source/datadog": "4.3.10", "plugins/source/datadog+FILLER": "0.0.0", diff --git a/plugins/destination/s3/go.mod b/plugins/destination/s3/go.mod index cef4f748f55e10..41ae44f1ab2bc4 100644 --- a/plugins/destination/s3/go.mod +++ b/plugins/destination/s3/go.mod @@ -11,7 +11,7 @@ require ( github.com/aws/aws-sdk-go-v2/feature/s3/transfermanager v0.1.17 github.com/aws/aws-sdk-go-v2/service/s3 v1.99.1 github.com/aws/aws-sdk-go-v2/service/sts v1.42.0 - github.com/aws/smithy-go v1.25.0 + github.com/aws/smithy-go v1.25.1 github.com/cloudquery/codegen v0.4.1 github.com/cloudquery/filetypes/v4 v4.7.0 github.com/cloudquery/plugin-sdk/v4 v4.95.1 diff --git a/plugins/destination/s3/go.sum b/plugins/destination/s3/go.sum index 0aa714e45bd290..96b57ab255022a 100644 --- a/plugins/destination/s3/go.sum +++ b/plugins/destination/s3/go.sum @@ -53,8 +53,8 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.20 h1:oK/njaL8GtyEihkWMD4k3Vg github.com/aws/aws-sdk-go-v2/service/ssooidc v1.35.20/go.mod h1:JHs8/y1f3zY7U5WcuzoJ/yAYGYtNIVPKLIbp61euvmg= github.com/aws/aws-sdk-go-v2/service/sts v1.42.0 h1:ks8KBcZPh3PYISr5dAiXCM5/Thcuxk8l+PG4+A0exds= github.com/aws/aws-sdk-go-v2/service/sts v1.42.0/go.mod h1:pFw33T0WLvXU3rw1WBkpMlkgIn54eCB5FYLhjDc9Foo= -github.com/aws/smithy-go v1.25.0 h1:Sz/XJ64rwuiKtB6j98nDIPyYrV1nVNJ4YU74gttcl5U= -github.com/aws/smithy-go v1.25.0/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= +github.com/aws/smithy-go v1.25.1 h1:J8ERsGSU7d+aCmdQur5Txg6bVoYelvQJgtZehD12GkI= +github.com/aws/smithy-go v1.25.1/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk= github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg= github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= diff --git a/plugins/destination/snowflake/CHANGELOG.md b/plugins/destination/snowflake/CHANGELOG.md index 4d21a3a3d95c1c..aa5de947596226 100644 --- a/plugins/destination/snowflake/CHANGELOG.md +++ b/plugins/destination/snowflake/CHANGELOG.md @@ -1,5 +1,20 @@ # Changelog +## [5.2.9](https://github.com/cloudquery/cloudquery/compare/plugins-destination-snowflake-v5.2.8...plugins-destination-snowflake-v5.2.9) (2026-04-27) + + +### Bug Fixes + +* **deps:** Update module github.com/snowflakedb/gosnowflake/v2 to v2.0.1 ([#22753](https://github.com/cloudquery/cloudquery/issues/22753)) ([a85e567](https://github.com/cloudquery/cloudquery/commit/a85e5679347fd4654f784c0f54e620d1d7aef83e)) + +## [5.2.8](https://github.com/cloudquery/cloudquery/compare/plugins-destination-snowflake-v5.2.7...plugins-destination-snowflake-v5.2.8) (2026-04-27) + + +### Bug Fixes + +* Avoid panic during an empty write ([#22750](https://github.com/cloudquery/cloudquery/issues/22750)) ([0a69663](https://github.com/cloudquery/cloudquery/commit/0a69663925dea35e45178a34dbd69e00ff657e52)) +* **deps:** Update module google.golang.org/api to v0.275.0 ([#22590](https://github.com/cloudquery/cloudquery/issues/22590)) ([0e4cedc](https://github.com/cloudquery/cloudquery/commit/0e4cedc995e977a7dded30b2abeaf916c95abb90)) + ## [5.2.7](https://github.com/cloudquery/cloudquery/compare/plugins-destination-snowflake-v5.2.6...plugins-destination-snowflake-v5.2.7) (2026-04-15) diff --git a/plugins/destination/snowflake/client/write.go b/plugins/destination/snowflake/client/write.go index 4b1900e34511cb..1eff50595c82ed 100644 --- a/plugins/destination/snowflake/client/write.go +++ b/plugins/destination/snowflake/client/write.go @@ -32,6 +32,12 @@ func (c *Client) Write(ctx context.Context, msgs <-chan message.WriteMessage) er } func (c *Client) WriteTableBatch(ctx context.Context, name string, msgs message.WriteInserts) error { + // if there are no messages, we can skip the write. Ideally this should be handled in the BatchWriter, but this is a good safeguard until the fix can be implemented + // upstream + if len(msgs) == 0 { + return nil + } + if err := c.setupWrite(ctx); err != nil { return err } diff --git a/plugins/destination/snowflake/go.mod b/plugins/destination/snowflake/go.mod index 2e448951a6906c..cd840b7b2a3dbe 100644 --- a/plugins/destination/snowflake/go.mod +++ b/plugins/destination/snowflake/go.mod @@ -8,7 +8,7 @@ require ( github.com/cloudquery/plugin-sdk/v4 v4.95.1 github.com/goccy/go-json v0.10.6 github.com/rs/zerolog v1.34.0 - github.com/snowflakedb/gosnowflake/v2 v2.0.0 + github.com/snowflakedb/gosnowflake/v2 v2.0.1 github.com/stretchr/testify v1.11.1 golang.org/x/sync v0.20.0 ) diff --git a/plugins/destination/snowflake/go.sum b/plugins/destination/snowflake/go.sum index d6a3c6657dad59..8a9042ec5f73b8 100644 --- a/plugins/destination/snowflake/go.sum +++ b/plugins/destination/snowflake/go.sum @@ -210,8 +210,8 @@ github.com/samber/lo v1.53.0 h1:t975lj2py4kJPQ6haz1QMgtId2gtmfktACxIXArw3HM= github.com/samber/lo v1.53.0/go.mod h1:4+MXEGsJzbKGaUEQFKBq2xtfuznW9oz/WrgyzMzRoM0= github.com/santhosh-tekuri/jsonschema/v6 v6.0.2 h1:KRzFb2m7YtdldCEkzs6KqmJw4nqEVZGK7IN2kJkjTuQ= github.com/santhosh-tekuri/jsonschema/v6 v6.0.2/go.mod h1:JXeL+ps8p7/KNMjDQk3TCwPpBy0wYklyWTfbkIzdIFU= -github.com/snowflakedb/gosnowflake/v2 v2.0.0 h1:oxTCOjOsJIPMG1a3cSc4s53nExst+wkgvqinBSwpeFo= -github.com/snowflakedb/gosnowflake/v2 v2.0.0/go.mod h1:B+dGQsCHnpwet3hgbdh2t/vqKBG7HpEO2o3jWt3KHeo= +github.com/snowflakedb/gosnowflake/v2 v2.0.1 h1:zRHCluGtwFLpc1wzN/T3U2GdWd11dx4/LeLgZBjxHvU= +github.com/snowflakedb/gosnowflake/v2 v2.0.1/go.mod h1:c0hIqJ/dxgaMl7g1o8n4Ca3Mf5YCiiVx9igio/PNqC8= github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU= github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4= github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY= diff --git a/plugins/destination/sqlite-python/uv.lock b/plugins/destination/sqlite-python/uv.lock index 207084cc28c618..2c68323a2ff59c 100644 --- a/plugins/destination/sqlite-python/uv.lock +++ b/plugins/destination/sqlite-python/uv.lock @@ -11,7 +11,7 @@ resolution-markers = [ ] [options] -exclude-newer = "2026-04-20T05:09:46.779727159Z" +exclude-newer = "2026-04-20T12:38:00.557325958Z" exclude-newer-span = "P1W" [[package]] diff --git a/plugins/source/hackernews/coverage.md b/plugins/source/hackernews/coverage.md index 6662dc12c98423..5a0c395a997c18 100644 --- a/plugins/source/hackernews/coverage.md +++ b/plugins/source/hackernews/coverage.md @@ -8,8 +8,8 @@ | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/errors.go:16: | RetryOnError | 90.9% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/errors.go:35: | isRetryable | 100.0% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/resolvers.go:12: | UnixTimeResolver | 0.0% | -| github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/spec.go:23: | SetDefaults | 0.0% | -| github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/spec.go:34: | Validate | 0.0% | +| github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/spec.go:24: | SetDefaults | 0.0% | +| github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/spec.go:35: | Validate | 0.0% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/spec/gen/main.go:14: | main | 0.0% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/spec/gen/main.go:21: | currDir | 0.0% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/client/testing.go:25: | MockTestHelper | 0.0% | @@ -28,4 +28,4 @@ | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/resources/services/items/items_fetch.go:109: | fetchBatch | 100.0% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/resources/services/items/items_fetch.go:125: | fetchItem | 50.0% | | github.com/cloudquery/cloudquery/plugins/source/hackernews/v3/resources/services/items/items_fetch.go:140: | findFirstPostAfter | 80.0% | -| total: | (statements) | 44.3% | +| total: | (statements) | 43.8% | diff --git a/plugins/source/square/uv.lock b/plugins/source/square/uv.lock index f1b42fd3672ec7..dad9e0693843d5 100644 --- a/plugins/source/square/uv.lock +++ b/plugins/source/square/uv.lock @@ -11,7 +11,7 @@ resolution-markers = [ ] [options] -exclude-newer = "2026-04-20T05:09:48.89736177Z" +exclude-newer = "2026-04-20T12:38:03.493992415Z" exclude-newer-span = "P1W" [[package]] diff --git a/plugins/source/typeform/uv.lock b/plugins/source/typeform/uv.lock index 272197b3f4a133..1432afc543e7a0 100644 --- a/plugins/source/typeform/uv.lock +++ b/plugins/source/typeform/uv.lock @@ -11,7 +11,7 @@ resolution-markers = [ ] [options] -exclude-newer = "2026-04-20T05:09:50.832467105Z" +exclude-newer = "2026-04-20T12:38:05.444842323Z" exclude-newer-span = "P1W" [[package]]