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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user