Skip to content

Commit 329c72e

Browse files
authored
Deps: update arrow version (#419)
1 parent cca1661 commit 329c72e

File tree

4 files changed

+93
-22
lines changed

4 files changed

+93
-22
lines changed

data/arrow_test.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,19 @@ func TestEncode(t *testing.T) {
293293
t.Fatal(err)
294294
}
295295

296+
// Check for the same exact file after encode
296297
if !bytes.Equal(b, want) {
297-
t.Fatalf("data frame doesn't match golden file")
298+
// check if the file still represents the same frame or not
299+
newDf, err := data.UnmarshalArrowFrame(want)
300+
if err != nil {
301+
t.Fatal("unable to create frame from encoded arrow file")
302+
}
303+
304+
if diff := cmp.Diff(df, newDf, data.FrameTestCompareOptions()...); diff != "" {
305+
t.Errorf("Arrow frame result mismatch (-want +got):\n%s", diff)
306+
}
307+
308+
t.Fatalf("arrow file doesn't match golden file (new version?)")
298309
}
299310
}
300311

0 Bytes
Binary file not shown.

go.mod

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/grafana/grafana-plugin-sdk-go
33
go 1.17
44

55
require (
6-
github.com/apache/arrow/go/arrow v0.0.0-20210223225224-5bea62493d91
6+
github.com/apache/arrow/go/arrow v0.0.0-20211112161151-bc219186db40
77
github.com/cheekybits/genny v1.0.0
8-
github.com/golang/protobuf v1.5.1 // indirect
8+
github.com/golang/protobuf v1.5.2 // indirect
99
github.com/google/go-cmp v0.5.6
1010
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
1111
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
@@ -21,7 +21,7 @@ require (
2121
github.com/prometheus/client_golang v1.11.0
2222
github.com/prometheus/common v0.32.1
2323
github.com/stretchr/testify v1.7.0
24-
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40
24+
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
2525
google.golang.org/grpc v1.41.0
2626
google.golang.org/protobuf v1.27.1
2727
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect
@@ -32,19 +32,22 @@ require (
3232
github.com/cespare/xxhash/v2 v2.1.1 // indirect
3333
github.com/davecgh/go-spew v1.1.1 // indirect
3434
github.com/fatih/color v1.7.0 // indirect
35-
github.com/google/flatbuffers v1.11.0 // indirect
35+
github.com/golang/snappy v0.0.3 // indirect
36+
github.com/google/flatbuffers v2.0.0+incompatible // indirect
37+
github.com/klauspost/compress v1.13.1 // indirect
3638
github.com/mattn/go-colorable v0.1.4 // indirect
3739
github.com/mattn/go-isatty v0.0.10 // indirect
3840
github.com/mattn/go-runewidth v0.0.9 // indirect
3941
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
4042
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
4143
github.com/modern-go/reflect2 v1.0.2 // indirect
4244
github.com/oklog/run v1.0.0 // indirect
45+
github.com/pierrec/lz4/v4 v4.1.8 // indirect
4346
github.com/pmezard/go-difflib v1.0.0 // indirect
4447
github.com/prometheus/client_model v0.2.0 // indirect
4548
github.com/prometheus/procfs v0.6.0 // indirect
46-
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 // indirect
49+
golang.org/x/net v0.0.0-20210614182718-04defd469f4e // indirect
4750
golang.org/x/text v0.3.6 // indirect
4851
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
49-
google.golang.org/genproto v0.0.0-20200911024640-645f7a48b24f // indirect
52+
google.golang.org/genproto v0.0.0-20210630183607-d20f26d13c79 // indirect
5053
)

0 commit comments

Comments
 (0)