From 15aa7d1ad8d922b618bf64de5a11039dd0767dcc Mon Sep 17 00:00:00 2001 From: Maxton Huff Date: Mon, 1 Mar 2021 11:18:31 -0600 Subject: [PATCH] add field to SetRowAttrs and TopK to prototypes in ast.go --- pql/ast.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pql/ast.go b/pql/ast.go index fe8a8cb2e..a889c9489 100644 --- a/pql/ast.go +++ b/pql/ast.go @@ -421,6 +421,7 @@ var callInfoByFunc = map[string]callInfo{ allowUnknown: false, prototypes: map[string]interface{}{ "_field": "", + "field": "", "k": int64(0), "filter": nil, "from": nil, @@ -483,6 +484,7 @@ var callInfoByFunc = map[string]callInfo{ allowUnknown: true, prototypes: map[string]interface{}{ "_field": "", + "field": "", "_row": stringOrInt64, }, },