Skip to content

Commit 5458658

Browse files
committed
frostdb: Fix label names query
1 parent 07faba7 commit 5458658

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frostdb/frostdb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ func (f *FrostQuerier) LabelNames(matchers ...*labels.Matcher) ([]string, storag
123123
)
124124

125125
sets := map[string]struct{}{}
126-
err := engine.ScanSchema("metrics").
127-
Distinct(logicalplan.Col("labels")).
126+
err := engine.ScanTable("metrics").
127+
Project(logicalplan.DynCol("labels")).
128128
Filter(promMatchersToFrostDBExprs(matchers)).
129129
Execute(context.Background(), func(ar arrow.Record) error {
130130
defer ar.Release()

0 commit comments

Comments
 (0)