Skip to content

Commit 6783806

Browse files
authored
fix: Update to SDK v2.3.8, remove release calls (#10263)
#### Summary Same as #10262 for Snowflake <!--
1 parent b9675ee commit 6783806

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

plugins/destination/snowflake/client/write.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ func (c *Client) WriteTableBatch(ctx context.Context, table *arrow.Schema, resou
3636
enc.SetEscapeHTML(false)
3737
for i := 0; i < arr.Len(); i++ {
3838
if err := enc.Encode(arr.GetOneForMarshal(i)); err != nil {
39-
arr.Release()
40-
r.Release()
4139
return err
4240
}
4341
}
44-
arr.Release()
45-
r.Release()
4642
}
4743

4844
if err := f.Close(); err != nil {

plugins/destination/snowflake/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.19
44

55
require (
66
github.com/apache/arrow/go/v12 v12.0.0-20230418102323-1deb740e02fa
7-
github.com/cloudquery/plugin-sdk/v2 v2.3.6
7+
github.com/cloudquery/plugin-sdk/v2 v2.3.8
88
github.com/rs/zerolog v1.29.0
99
github.com/snowflakedb/gosnowflake v1.6.18
1010
)

plugins/destination/snowflake/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn
110110
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
111111
github.com/cloudquery/arrow/go/v12 v12.0.0-20230416141001-e8315b3fff1c h1:ChEK/kvdvnnugPJqCpMbmCe8LwMmi/quMD5WtQig/1w=
112112
github.com/cloudquery/arrow/go/v12 v12.0.0-20230416141001-e8315b3fff1c/go.mod h1:d+tV/eHZZ7Dz7RPrFKtPK02tpr+c9/PEd/zm8mDS9Vg=
113-
github.com/cloudquery/plugin-sdk/v2 v2.3.6 h1:fzsmALscu9w6pZNB+6Aj4cobhqCCKorCDjV3EtkF8Ao=
114-
github.com/cloudquery/plugin-sdk/v2 v2.3.6/go.mod h1:/wAbhyQbdIUAMEL+Yo9zkgoBls83xt3ev6jLpJblIoU=
113+
github.com/cloudquery/plugin-sdk/v2 v2.3.8 h1:6UzliJ1TW70Y40aQIQv6AXBY5ra7sWtlBo12UQsGF2A=
114+
github.com/cloudquery/plugin-sdk/v2 v2.3.8/go.mod h1:/wAbhyQbdIUAMEL+Yo9zkgoBls83xt3ev6jLpJblIoU=
115115
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
116116
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
117117
github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=

0 commit comments

Comments
 (0)