diff --git a/promql/parser/parse.go b/promql/parser/parse.go index 1cdfd75da..3d5ebed4b 100644 --- a/promql/parser/parse.go +++ b/promql/parser/parse.go @@ -168,6 +168,7 @@ func newParser(input string) *parser { p.injecting = false p.parseErrors = nil + p.generatedParserResult = nil // Clear lexer struct before reusing. p.lex = Lexer{