Skip to content

Commit 6ce45b6

Browse files
authored
fix: Update to SDK v2.3.8, remove release calls (#10262)
#### Summary Extracted from #10260 as we need to remove the `release` calls for the tests to pass. See https://github.com/cloudquery/cloudquery/actions/runs/4777804922/jobs/8493788491?pr=10260 Same as #10212 <!--
1 parent 6783806 commit 6ce45b6

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

plugins/destination/neo4j/client/read.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ func (c *Client) reverseTransformer(sc *arrow.Schema, node *neo4j.Node) (arrow.R
8585
}
8686
}
8787
rec := bldr.NewRecord()
88-
bldr.Release()
8988
return rec, nil
9089
}
9190

plugins/destination/neo4j/client/transformer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ func transformArr(arr arrow.Array) []any {
3939
start, end := a.ValueOffsets(i)
4040
nested := array.NewSlice(a.ListValues(), start, end)
4141
pgArr[i] = transformArr(nested)
42-
nested.Release()
4342
default:
4443
pgArr[i] = arr.ValueStr(i)
4544
}

plugins/destination/neo4j/client/write.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ func (c *Client) WriteTableBatch(ctx context.Context, table *arrow.Schema, recor
1616
rows := make([]map[string]any, 0)
1717
for _, record := range records {
1818
rows = append(rows, transformValues(record)...)
19-
record.Release()
2019
}
2120
var sb strings.Builder
2221
sb.WriteString("UNWIND $rows AS row MERGE (t:")

plugins/destination/neo4j/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-20230418061731-a2548a79a191
7-
github.com/cloudquery/plugin-sdk/v2 v2.3.6
7+
github.com/cloudquery/plugin-sdk/v2 v2.3.8
88
github.com/neo4j/neo4j-go-driver/v5 v5.6.0
99
github.com/rs/zerolog v1.29.0
1010
)

plugins/destination/neo4j/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMn
4747
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
4848
github.com/cloudquery/arrow/go/v12 v12.0.0-20230416141001-e8315b3fff1c h1:ChEK/kvdvnnugPJqCpMbmCe8LwMmi/quMD5WtQig/1w=
4949
github.com/cloudquery/arrow/go/v12 v12.0.0-20230416141001-e8315b3fff1c/go.mod h1:d+tV/eHZZ7Dz7RPrFKtPK02tpr+c9/PEd/zm8mDS9Vg=
50-
github.com/cloudquery/plugin-sdk/v2 v2.3.6 h1:fzsmALscu9w6pZNB+6Aj4cobhqCCKorCDjV3EtkF8Ao=
51-
github.com/cloudquery/plugin-sdk/v2 v2.3.6/go.mod h1:/wAbhyQbdIUAMEL+Yo9zkgoBls83xt3ev6jLpJblIoU=
50+
github.com/cloudquery/plugin-sdk/v2 v2.3.8 h1:6UzliJ1TW70Y40aQIQv6AXBY5ra7sWtlBo12UQsGF2A=
51+
github.com/cloudquery/plugin-sdk/v2 v2.3.8/go.mod h1:/wAbhyQbdIUAMEL+Yo9zkgoBls83xt3ev6jLpJblIoU=
5252
github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
5353
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
5454
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=

0 commit comments

Comments
 (0)