From 78eb1623ec5dafbb2cddb382df2705188d4867a7 Mon Sep 17 00:00:00 2001 From: Owen Williams Date: Fri, 8 Dec 2023 12:47:13 -0500 Subject: [PATCH] Revert promql changes Signed-off-by: Owen Williams --- promql/parser/generated_parser.y | 20 +- promql/parser/generated_parser.y.go | 970 ++++++++++++++++------------ promql/parser/parse.go | 21 - 3 files changed, 551 insertions(+), 460 deletions(-) diff --git a/promql/parser/generated_parser.y b/promql/parser/generated_parser.y index 5f5e2a1d7..dce79f769 100644 --- a/promql/parser/generated_parser.y +++ b/promql/parser/generated_parser.y @@ -161,7 +161,7 @@ START_METRIC_SELECTOR // Type definitions for grammar rules. %type label_match_list %type label_matcher -%type aggregate_op grouping_label match_op maybe_label metric_identifier unary_op at_modifier_preprocessors string_identifier +%type aggregate_op grouping_label match_op maybe_label metric_identifier unary_op at_modifier_preprocessors %type label_set metric %type label_set_list %type