update dependency grafana/grafana-plugin-sdk-go to v0.281.0 (#112726)

* go get github.com/grafana/grafana-plugin-sdk-go@v0.281.0

* make update-workspace

* updated failing unit test

* disable deprecation warnings

* datasources: allow underscore-prefixed local time range

* updated go.work.sum
This commit is contained in:
Gábor Farkas
2025-10-22 09:02:11 +02:00
committed by GitHub
parent 0098a68983
commit 8ab7a20265
57 changed files with 847 additions and 863 deletions
+2
View File
@@ -26,6 +26,8 @@ const rowLimit = 1_000_000
type recordReader interface {
Next() bool
Schema() *arrow.Schema
//TODO: fix deprecation warning
//nolint:staticcheck
Record() arrow.Record
Err() error
}
+16
View File
@@ -77,7 +77,11 @@ func TestNewQueryDataResponse(t *testing.T) {
arr = append(arr, tarr)
}
//TODO: fix deprecation warning
//nolint:staticcheck
record := array.NewRecord(schema, arr, -1)
//TODO: fix deprecation warning
//nolint:staticcheck
records := []arrow.Record{record}
reader, err := array.NewRecordReader(schema, records)
assert.NoError(t, err)
@@ -202,7 +206,11 @@ func TestNewQueryDataResponse_Error(t *testing.T) {
)
assert.NoError(t, err)
//TODO: fix deprecation warning
//nolint:staticcheck
record := array.NewRecord(schema, []arrow.Array{i64s, f64s}, -1)
//TODO: fix deprecation warning
//nolint:staticcheck
records := []arrow.Record{record}
reader, err := array.NewRecordReader(schema, records)
assert.NoError(t, err)
@@ -247,7 +255,11 @@ func TestNewQueryDataResponse_WideTable(t *testing.T) {
)
assert.NoError(t, err)
//TODO: fix deprecation warning
//nolint:staticcheck
record := array.NewRecord(schema, []arrow.Array{times, strs, i64s}, -1)
//TODO: fix deprecation warning
//nolint:staticcheck
records := []arrow.Record{record}
reader, err := array.NewRecordReader(schema, records)
assert.NoError(t, err)
@@ -522,7 +534,11 @@ func TestCustomMetadata(t *testing.T) {
)
assert.NoError(t, err)
//TODO: fix deprecation warning
//nolint:staticcheck
record := array.NewRecord(schema, []arrow.Array{i64s}, -1)
//TODO: fix deprecation warning
//nolint:staticcheck
records := []arrow.Record{record}
reader, err := array.NewRecordReader(schema, records)
assert.NoError(t, err)
+5
View File
@@ -196,6 +196,8 @@ func arrowToNestedSetDataFrame(flamegraph *v1alpha1.FlamegraphArrow) (*data.Fram
defer arrowReader.Release()
arrowReader.Next()
//TODO: fix deprecation warning
//nolint:staticcheck
rec := arrowReader.Record()
fi, err := newFlamegraphIterator(rec)
@@ -236,6 +238,9 @@ type flamegraphIterator struct {
addressBuilder *bytes.Buffer
}
// TODO: fix deprecation warning
//
//nolint:staticcheck
func newFlamegraphIterator(rec arrow.Record) (*flamegraphIterator, error) {
schema := rec.Schema()
+2
View File
@@ -278,6 +278,8 @@ func flamegraphResponse() *connect.Response[v1alpha1.QueryResponse] {
builderFlat.Append(columns.flat[i])
}
//TODO: fix deprecation warning
//nolint:staticcheck
record := array.NewRecord(
arrow.NewSchema(fields, nil),
[]arrow.Array{