From f66850c0fe93faf3543f93ec27a43d323d8f3f35 Mon Sep 17 00:00:00 2001 From: Owen Williams Date: Fri, 8 Dec 2023 12:48:07 -0500 Subject: [PATCH] Revert "Revert promql changes" This reverts commit 78eb1623ec5dafbb2cddb382df2705188d4867a7. --- promql/parser/generated_parser.y | 20 +- promql/parser/generated_parser.y.go | 1018 ++++++++++++--------------- promql/parser/parse.go | 21 + 3 files changed, 484 insertions(+), 575 deletions(-) diff --git a/promql/parser/generated_parser.y b/promql/parser/generated_parser.y index dce79f769..5f5e2a1d7 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 +%type aggregate_op grouping_label match_op maybe_label metric_identifier unary_op at_modifier_preprocessors string_identifier %type label_set metric %type label_set_list %type