From c5b5a1a2ef78f84239ffe5545abd7d289a89b8db Mon Sep 17 00:00:00 2001 From: alextheimer Date: Thu, 26 Oct 2023 11:07:07 -0700 Subject: [PATCH] fix(prometheus): incorrect config method (#1682) --- .../main/scala/filodb/prometheus/query/PrometheusModel.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/src/main/scala/filodb/prometheus/query/PrometheusModel.scala b/prometheus/src/main/scala/filodb/prometheus/query/PrometheusModel.scala index 82726e2579..0e03d89eaa 100644 --- a/prometheus/src/main/scala/filodb/prometheus/query/PrometheusModel.scala +++ b/prometheus/src/main/scala/filodb/prometheus/query/PrometheusModel.scala @@ -43,7 +43,7 @@ object PrometheusModel { case MatchType.NOT_EQUAL => Filter.NotEquals(m.getValue) case MatchType.REGEX_MATCH => // Relax the length limit only for matchers that contain at most the "|" special character. - val shouldRelax = queryConfig.getBoolean("relaxed-pipe-only-equals-regex-limit") && + val shouldRelax = queryConfig.hasPath("relaxed-pipe-only-equals-regex-limit") && QueryUtils.containsPipeOnlyRegex(m.getValue) if (shouldRelax) { val limit = queryConfig.getInt("relaxed-pipe-only-equals-regex-limit");