Skip to content

Commit d4f774f

Browse files
authored
Fix the record list query does not support new OAP versions (#197)
1 parent 5d0a37c commit d4f774f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Diff for: CHANGES.md

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ Release Notes.
66
------------------
77

88
### Features
9+
10+
### Bug Fixes
11+
12+
* Fix the record list query does not support new OAP versions (with major version number > 9).
13+
914
## What's Changed
1015

1116
* Add the sub-command `menu get` for get the ui menu items by @mrproliu in https://github.com/apache/skywalking-cli/pull/187

Diff for: internal/commands/metrics/aggregation/sampled-record.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ $ swctl metrics sampled-record --name top_n_database_statement 5
7676
}
7777

7878
// since 9.3.0, use new record query API
79-
if major >= 9 && minor >= 3 {
79+
if (major == 9 && minor >= 3) || major > 9 {
8080
condition, duration, err1 := buildReadRecordsCondition(ctx)
8181
if err1 != nil {
8282
return err1

0 commit comments

Comments
 (0)