Skip to content

Commit c493632

Browse files
authored
bugfix: applyByNode now honors aliased series names (#938)
1 parent 6dcbb6c commit c493632

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

expr/rewrite/applyByNode/function.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func (f *applyByNode) Do(ctx context.Context, eval interfaces.Evaluator, e parse
5555
rv := make([]string, 0, len(args))
5656
for _, a := range args {
5757
var node string
58-
metric := a.Tags["name"]
58+
metric := types.ExtractName(a.Name)
5959
nodes := strings.Split(metric, ".")
6060
if nodeNum >= len(nodes) {
6161
// field overflow

0 commit comments

Comments
 (0)